@Test
public void setFeatureWorksAsExpected() {

    final String newFeatureId = "lamp";
    final Feature newFeature = ThingsModelFactory.newFeature(newFeatureId);
    final Features newFeatures = ThingsModelFactory.newFeaturesBuilder(FEATURES)
            .set(newFeature)
            .build();
    final Thing changedThing = KNOWN_THING_V1.setFeature(newFeature);
    assertThat(changedThing)
            .isNotSameAs(KNOWN_THING_V1)
            .hasId(THING_ID)
            .hasAcl(ACL)
            .hasAttributes(ATTRIBUTES)
            .hasFeatures(newFeatures)
            .hasLifecycle(LIFECYCLE)
            .hasRevision(REVISION);
}