@Test
public void updateFeaturesShouldUpdateFeatureCollection() {

    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();
    FeatureCollection updatedFeatureCollection = FeatureCollection.fromFeatures(new ArrayList<Feature>());
    boundaryLayer.updateFeatures(updatedFeatureCollection);
    assertEquals(updatedFeatureCollection, ReflectionHelpers.getField(
            ReflectionHelpers.getField(boundaryLayer, "builder"), "featureCollection")
    );
}