@Test
public void locationRequests_Resume_WhenActivityIsDisplayed_AndFormThatAuditsLocationWasAlreadyLoaded() {

    when(locationHelper.isCurrentFormSet()).thenReturn(true);
    when(locationHelper.currentFormAuditsLocation()).thenReturn(true);
    when(locationHelper.arePlayServicesAvailable()).thenReturn(true);
    when(locationHelper.isBackgroundLocationPreferenceEnabled()).thenReturn(true);
    when(locationHelper.isAndroidLocationPermissionGranted()).thenReturn(true);
    when(locationHelper.getCurrentFormAuditConfig()).thenReturn(new AuditConfig("foo", "2", "3", true));
    backgroundLocationManager.activityDisplayed();
    Location location = LocationTestUtils.createLocation("GPS", 1, 2, 3, 4);
    fakeLocationClient.receiveFix(location);
    verify(locationHelper).provideLocationToAuditLogger(location);
}