assertThat(features)
.hasSize(2)
.areExactly(1, featureNamed("ID_1"))
.areExactly(1, featureNamed("ID_2"));
FeatureMetaData metadata1 = provider.getMetaData(new NamedFeature("ID_1"));
assertThat(metadata1).isNotNull();
assertThat(metadata1.getLabel()).isEqualTo("ID 1");
assertThat(metadata1.isEnabledByDefault()).isTrue();
assertThat(metadata1.getGroups())
.hasSize(2)
.areExactly(1, groupNamed("Group 1"))
.areExactly(1, groupNamed("Group Other"));
FeatureMetaData metadata2 = provider.getMetaData(new NamedFeature("ID_2"));
assertThat(metadata2).isNotNull();
assertThat(metadata2.getLabel()).isEqualTo("ID 2");
assertThat(metadata2.isEnabledByDefault()).isFalse();
assertThat(metadata2.getGroups())
.hasSize(1)
.areExactly(1, groupNamed("Group 2"));
}