assertThat(callback.locations.get(0).getSpeed()).isEqualTo(10f);
assertThat(callback.locations.get(1).getSpeed()).isEqualTo(20f);
assertThat(callback.locations.get(2).getSpeed()).isEqualTo(30f);
}
@Test
<BUG>public void setTrace_shouldRespectFastestInterval() throws Exception {
mockEngine.setRequest(LocationRequest.create().setFastestInterval(1000));
mockEngine.setTrace(getTestGpxTrace());</BUG>
Thread.sleep(1000);
Robolectric.runUiThreadTasks();

assertThat(callback.locations.get(0).getSpeed()).isEqualTo(10f);
assertThat(callback.locations.get(1).getSpeed()).isEqualTo(20f);
assertThat(callback.locations.get(2).getSpeed()).isEqualTo(30f);
}
@Test
public void setTrace_shouldRespectFastestInterval() throws Exception {
mockEngine.setTrace(getTestGpxTrace());
mockEngine.setRequest(LocationRequest.create().setFastestInterval(1000));
Thread.sleep(1000);
Robolectric.runUiThreadTasks();
