@Test
public void getLastLocationShouldRequestLastLocationFromLocationManager() {

    LocationManager locationManager = Mockito.spy((LocationManager) ReflectionHelpers.getField(androidGpsLocationClient, "locationManager"));
    ReflectionHelpers.setField(androidGpsLocationClient, "locationManager", locationManager);
    Location location = new Location(LocationManager.GPS_PROVIDER);
    location.setAccuracy(4f);
    location.setAltitude(23f);
    location.setLatitude(3d);
    location.setLongitude(1d);
    Mockito.doReturn(location).when(locationManager).getLastKnownLocation(LocationManager.GPS_PROVIDER);
    Location lastLocation = androidGpsLocationClient.getLastLocation();
    Assert.assertEquals(location, lastLocation);
    Mockito.verify(locationManager).getLastKnownLocation(LocationManager.GPS_PROVIDER);
}