@Test
public void removeLayerOnMapShouldReturnFalseWhenStyleIsNotReady() {

    float textSize = 20f;
    float boundaryWidth = 6f;
    int colorInt = Color.GREEN;
    String labelProperty = "district-name";
    FeatureCollection featureCollection = FeatureCollection.fromFeatures(new ArrayList<Feature>());
    BoundaryLayer.Builder builder = new BoundaryLayer.Builder(featureCollection)
            .setLabelProperty(labelProperty)
            .setLabelTextSize(textSize)
            .setLabelColorInt(colorInt)
            .setBoundaryColor(colorInt)
            .setBoundaryWidth(boundaryWidth);
    BoundaryLayer boundaryLayer = builder.build();
    MapboxMap mapboxMap = Mockito.mock(MapboxMap.class);
    Style style = Mockito.mock(Style.class);
    Mockito.doReturn(false)
            .when(style)
            .isFullyLoaded();
    Mockito.doReturn(style)
            .when(mapboxMap)
            .getStyle();
    assertFalse(boundaryLayer.removeLayerOnMap(mapboxMap));
}