assertThat(callback.locations.get(1).getLongitude()).isEqualTo(1.1);
assertThat(callback.locations.get(2).getLatitude()).isEqualTo(2.0);
assertThat(callback.locations.get(2).getLongitude()).isEqualTo(2.1);
}
@Test
<BUG>public void setTrace_shouldReportSpeed() throws Exception {
mockEngine.setRequest(LocationRequest.create().setFastestInterval(0));
mockEngine.setTrace(getTestGpxTrace());</BUG>
Thread.sleep(1000);
Robolectric.runUiThreadTasks();

assertThat(callback.locations.get(1).getLongitude()).isEqualTo(1.1);
assertThat(callback.locations.get(2).getLatitude()).isEqualTo(2.0);
assertThat(callback.locations.get(2).getLongitude()).isEqualTo(2.1);
}
@Test
public void setTrace_shouldReportSpeed() throws Exception {
mockEngine.setTrace(getTestGpxTrace());
mockEngine.setRequest(LocationRequest.create().setFastestInterval(0));
Thread.sleep(1000);
Robolectric.runUiThreadTasks();
