AnnotationFeatureGroup implements FeatureGroup { public static FeatureGroup build(Class<? extends Annotation> groupAnnotation) { if (groupAnnotation.isAnnotationPresent(org.togglz.core.annotation.FeatureGroup.class)) { return new AnnotationFeatureGroup(groupAnnotation); } return null; } private  AnnotationFeatureGroup(Class<? extends Annotation> groupAnnotation); static FeatureGroup build(Class<? extends Annotation> groupAnnotation); @Override String getLabel(); @Override boolean contains(Feature feature);  }
@Test void buildWillReturnNullWhenFeatureGroupAnnotationIsNotPresent() throws Exception { FeatureGroup result = AnnotationFeatureGroup.build(Label.class); assertNull(result); }