### Question:
LocationEngineResult { @Nullable public static LocationEngineResult extractResult(Intent intent) { LocationEngineResult result = null; if (isOnClasspath(GOOGLE_PLAY_LOCATION_RESULT)) { result = extractGooglePlayResult(intent); } return result == null ? extractAndroidResult(intent) : result; } private  LocationEngineResult(List<Location> locations); @NonNull static LocationEngineResult create(@Nullable Location location); @NonNull static LocationEngineResult create(@Nullable List<Location> locations); @Nullable Location getLastLocation(); List<Location> getLocations(); @Nullable static LocationEngineResult extractResult(Intent intent);  }### Answer:
@Test public void checkNullIntent() { LocationEngineResult result = LocationEngineResult.extractResult(null); assertThat(result).isNull(); }
@Test public void passInvalidIntent() { Intent intent = mock(Intent.class); LocationEngineResult result = LocationEngineResult.extractResult(intent); assertThat(result).isNull(); }