@Test
public void testSetFeatureType() throws Exception {
editor.setFeatureType(null);
SimpleFeatureTypeBuilder builder = (SimpleFeatureTypeBuilder) editor.testingGetViewer().getInput();
assertEquals(2, builder.buildFeatureType().getAttributeCount());
assertEquals(Messages.FeatureTypeEditor_newFeatureTypeName, builder.getName());
assertEquals(String.class, getAttributeDescriptor(0).getType().getBinding());
assertEquals(Messages.FeatureTypeEditor_defaultNameAttributeName, getAttributeDescriptor(0).getName());
assertEquals(LineString.class, getAttributeDescriptor(1).getType().getBinding());
assertEquals(Messages.FeatureTypeEditor_defaultGeometryName, getAttributeDescriptor(1).getName());