@Test
public void tryToBuildFeatureDefinitionWithEmptyBuilder() {

    final FeatureDefinitionBuilder underTest = ImmutableFeatureDefinition.getBuilder(FIRST_IDENTIFIER);
    underTest.remove(FIRST_IDENTIFIER);
    assertThatExceptionOfType(IndexOutOfBoundsException.class)
            .isThrownBy(underTest::build)
            .withMessage("This builder does not contain at least one Identifier!")
            .withNoCause();
}