@Test
public void testHashCode() {

    Feature feature1 = createFeature();
    Feature feature2 = createFeature();
    FeatureInfo featureInfo1 = AnnotationHandler.create(FeatureInfo.class, feature1);
    FeatureInfo featureInfo2 = AnnotationHandler.create(FeatureInfo.class, feature2);
    Set<FeatureInfo> set = new HashSet<>();
    set.add(featureInfo1);
    Assert.assertTrue(set.contains(featureInfo1));
    Assert.assertTrue(set.contains(featureInfo2));
}