Location mockLocation = new Location("mock");
mockEngine.setLocation(mockLocation);
assertThat(callback.lastLocation).isEqualTo(mockLocation);
}
@Test
<BUG>public void setTrace_shouldDoNothingIfNoRequestIsSet() throws Exception {
</BUG>
mockEngine.setTrace(getTestGpxTrace());
<BUG>assertThat(callback.lastLocation).isNull();
}
@Test
public void setTrace_shouldReportEachLocation() throws Exception {</BUG>
mockEngine.setRequest(LocationRequest.create().setFastestInterval(0));

Location mockLocation = new Location("mock");
mockEngine.setLocation(mockLocation);
assertThat(callback.lastLocation).isEqualTo(mockLocation);
}
