### Question:
MapWayname { void updateWaynameLayer(String wayname, SymbolLayer waynameLayer) { if (waynameLayer != null) { createWaynameIcon(wayname, waynameLayer); } } MapWayname(WaynameLayoutProvider layoutProvider, MapLayerInteractor layerInteractor,
             WaynameFeatureFinder featureInteractor, MapPaddingAdjustor paddingAdjustor);   }### Answer:
@Test public void onUpdateWaynameLayer_layerImageIsAdded() { String roadName = "roadName"; SymbolLayer waynameLayer = mock(SymbolLayer.class); when(waynameLayer.getVisibility()).thenReturn(visibility(Property.VISIBLE)); MapLayerInteractor layerInteractor = mock(MapLayerInteractor.class); when(layerInteractor.retrieveLayerFromId(MAPBOX_WAYNAME_LAYER)).thenReturn(waynameLayer); Bitmap bitmap = mock(Bitmap.class); WaynameLayoutProvider layoutProvider = mock(WaynameLayoutProvider.class); when(layoutProvider.generateLayoutBitmap(roadName)).thenReturn(bitmap); MapWayname mapWayname = buildMapWayname(layoutProvider, layerInteractor); mapWayname.updateWaynameLayer(roadName, waynameLayer); verify(layerInteractor).addLayerImage(MAPBOX_WAYNAME_ICON, bitmap); }