@Test
public void updateFeaturesShouldUpdateFeatureCollectionWhenNoFilterIsBeingUsed() 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();
    FeatureCollection updatedFeatureCollection = FeatureCollection.fromFeatures(new ArrayList<Feature>());
    arrowLineLayer.updateFeatures(updatedFeatureCollection);
    assertEquals(updatedFeatureCollection, ReflectionHelpers.getField(
            ReflectionHelpers.getField(
                    ReflectionHelpers.getField(arrowLineLayer, "builder")
                    , "featureConfig")
            , "featureCollection")
    );
}