@Test
public void newFeatures() {

    final String featureId = "featureId";
    final JsonObject jsonObject = JsonFactory.newObjectBuilder()
            .set(featureId, JsonFactory.newObject())
            .build();
    final Features expectedFeatures = ImmutableFeaturesBuilder.newInstance()
            .set(ImmutableFeatureFromScratchBuilder.newFeatureFromScratch().withId(featureId).build())
            .build();
    final Features features = ThingsModelFactory.newFeatures(jsonObject);
    assertThat(features).isEqualTo(expectedFeatures);
}