assertThat(listener.getAllLocations()).hasSize(1);
assertThat(listener.getMostRecentLocation()).isEqualTo(mockLocation);
}
@Test
public void setMockTrace_shouldInvokeListenerForEachLocation() throws Exception {
<BUG>File file = getTestGpxTrace();
api.setMockMode(true);
TestLocationListener listener = new TestLocationListener();</BUG>
LocationRequest request = LocationRequest.create();
request.setFastestInterval(0);

assertThat(listener.getAllLocations()).hasSize(1);
assertThat(listener.getMostRecentLocation()).isEqualTo(mockLocation);
}
@Test
public void setMockTrace_shouldInvokeListenerForEachLocation() throws Exception {
api.setMockMode(true);
api.setMockTrace(getTestGpxTrace());
TestLocationListener listener = new TestLocationListener();
LocationRequest request = LocationRequest.create();
request.setFastestInterval(0);
