@Test
public void testEquals() {

    SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();
    builder.setName("SomeFeature");
    builder.setCRS(null);
    builder.add("name", String.class);
    builder.add("geom1", Point.class);
    builder.add("geom2", Point.class);
    builder.setDefaultGeometry("geom1");
    SimpleFeatureType ft1 = builder.buildFeatureType();
    builder.setName("SomeFeature");
    builder.setCRS(null);
    builder.add("name", String.class);
    builder.add("geom1", Point.class);
    builder.add("geom2", Point.class);
    builder.setDefaultGeometry("geom1");
    SimpleFeatureType ft2 = builder.buildFeatureType();
    assertTrue(FeatureTypes.equalsExact(ft1, ft2));
    
    builder.setName("SomeFeature");
    builder.setCRS(null);
    builder.add("name", String.class);
    builder.add("geom1", Point.class);
    builder.add("geom2", Point.class);
    builder.setDefaultGeometry("geom2");
    ft2 = builder.buildFeatureType();
    assertFalse(FeatureTypes.equalsExact(ft1, ft2));
}