@Test
public void removeLayerOnMapShouldReturnFalseWhenStyleIsNotReady() throws InvalidArrowLineConfigException {

    ArrayList<Feature> featuresList = new ArrayList<>();
    FeatureCollection featureCollection = FeatureCollection.fromFeatures(featuresList);
    ArrowLineLayer.FeatureConfig featureConfig = new ArrowLineLayer.FeatureConfig(featureCollection);
    ArrowLineLayer.SortConfig sortConfig = new ArrowLineLayer.SortConfig("", ArrowLineLayer.SortConfig.SortOrder.DESC, ArrowLineLayer.SortConfig.PropertyType.NUMBER);
    ArrowLineLayer.Builder builder = new ArrowLineLayer.Builder(context, featureConfig, sortConfig);
    ArrowLineLayer arrowLineLayer = 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(arrowLineLayer.removeLayerOnMap(mapboxMap));
}