@Test
public void fromJsonOfEmptyArrayFailsWithException() {

    assertThatExceptionOfType(FeatureDefinitionEmptyException.class)
            .isThrownBy(() -> ImmutableFeatureDefinition.fromJson(JsonFactory.newArray()))
            .withMessage("Feature Definition must not be empty!")
            .withNoCause();
}