shadowLocationManager.simulateLocation(location2);
assertThat(callback.location).isEqualTo(location1);
}
@Test
public void onLocationChanged_shouldNotReportLessThanFastestIntervalNetwork() throws Exception {
<BUG>LocationRequest request = LocationRequest.create().setFastestInterval(5000);
fusionEngine.setRequest(request);</BUG>
final long time = System.currentTimeMillis();
Location location1 = getTestLocation(NETWORK_PROVIDER, 0, 0, time);
Location location2 = getTestLocation(NETWORK_PROVIDER, 1, 1, time + 1000);

shadowLocationManager.simulateLocation(location2);
assertThat(callback.location).isEqualTo(location1);
}
@Test
public void onLocationChanged_shouldNotReportLessThanFastestIntervalNetwork() throws Exception {
LocationRequest request = LocationRequest.create().setFastestInterval(5000)
.setPriority(PRIORITY_HIGH_ACCURACY);
fusionEngine.setRequest(request);
final long time = System.currentTimeMillis();
Location location1 = getTestLocation(NETWORK_PROVIDER, 0, 0, time);
Location location2 = getTestLocation(NETWORK_PROVIDER, 1, 1, time + 1000);
