### Question:
LocationComponentActivationOptions { @NonNull public static Builder builder(@NonNull Context context, @NonNull Style fullyLoadedMapStyle) { return new LocationComponentActivationOptions.Builder(context, fullyLoadedMapStyle); } private  LocationComponentActivationOptions(@NonNull Context context, @NonNull Style style,
                                             @Nullable LocationEngine locationEngine,
                                             @Nullable LocationEngineRequest locationEngineRequest,
                                             @Nullable LocationComponentOptions locationComponentOptions,
                                             int styleRes,
                                             boolean useDefaultLocationEngine,
                                             boolean useSpecializedLocationLayer); @NonNull static Builder builder(@NonNull Context context, @NonNull Style fullyLoadedMapStyle); @NonNull Context context(); @NonNull Style style(); @Nullable LocationEngine locationEngine(); @Nullable LocationEngineRequest locationEngineRequest(); @Nullable LocationComponentOptions locationComponentOptions(); int styleRes(); boolean useDefaultLocationEngine(); boolean useSpecializedLocationLayer();  }### Answer:
@Test public void nullContext_causesExceptionToBeThrown() throws Exception { thrown.expect(NullPointerException.class); thrown.expectMessage("Context in LocationComponentActivationOptions is null."); LocationComponentActivationOptions.builder(null, style) .build(); }
@Test public void nullStyle_causesExceptionToBeThrown() throws Exception { thrown.expect(NullPointerException.class); thrown.expectMessage("Style in LocationComponentActivationOptions is null. Make sure the Style object isn't null." + " Wait for the map to fully load before passing the Style object to LocationComponentActivationOptions."); LocationComponentActivationOptions.builder(context, null) .build(); }
@Test public void locationComponent_exceptionThrownWithDefaultLocationEngineButNotFullyLoadedStyle() throws Exception { when(style.isFullyLoaded()).thenReturn(false); thrown.expect(IllegalArgumentException.class); thrown.expectMessage("Style in LocationComponentActivationOptions isn't fully loaded. Wait for the " + "map to fully load before passing the Style object to " + "LocationComponentActivationOptions."); LocationComponentActivationOptions.builder(context, style) .build(); }