### Question:
LocationLayerController { void initializeComponents(Style style, LocationComponentOptions options) { this.positionManager = new LocationComponentPositionManager(style, options.layerAbove(), options.layerBelow()); locationLayerRenderer.initializeComponents(style); locationLayerRenderer.addLayers(positionManager); applyStyle(options); if (isHidden) { hide(); } else { show(); } } LocationLayerController(MapboxMap mapboxMap, Style style,
                          LayerSourceProvider layerSourceProvider,
                          LayerFeatureProvider featureProvider,
                          LayerBitmapProvider bitmapProvider,
                          @NonNull LocationComponentOptions options,
                          @NonNull OnRenderModeChangedListener internalRenderModeChangedListener,
                          @NonNull OnIndicatorPositionChangedListener internalIndicatorPositionChangedListener,
                          boolean useSpecializedLocationLayer);   }### Answer:
@Test public void onInitialization_numberOfCachedLayerIdsIsConstant() { OnRenderModeChangedListener internalRenderModeChangedListener = mock(OnRenderModeChangedListener.class); OnIndicatorPositionChangedListener internalIndicatorPositionChangedListener = mock(OnIndicatorPositionChangedListener.class); LayerSourceProvider sourceProvider = buildLayerProvider(); GeoJsonSource locationSource = mock(GeoJsonSource.class); when(sourceProvider.generateSource(any(Feature.class))).thenReturn(locationSource); Set<String> layerSet = new HashSet<>(); when(sourceProvider.getEmptyLayerSet()).thenReturn(layerSet); LayerBitmapProvider bitmapProvider = mock(LayerBitmapProvider.class); LocationComponentOptions options = mock(LocationComponentOptions.class); LocationLayerController controller = new LocationLayerController(mapboxMap, mapboxMap.getStyle(), sourceProvider, buildFeatureProvider(options), bitmapProvider, options, internalRenderModeChangedListener, internalIndicatorPositionChangedListener, false); controller.initializeComponents(mapboxMap.getStyle(), options); assertEquals(6, layerSet.size()); }