@Test
public void testBuildFeatureType() {

    String input = CSVTestStrategySupport.buildInputString("quux,morx\n");
    CSVFileState fileState = new CSVFileState(input, "foo");
    CSVStrategy strategy = new CSVSpecifiedLatLngStrategy(fileState, "quux", "morx");
    SimpleFeatureType featureType = strategy.getFeatureType();
    assertEquals("Invalid attribute count", 1, featureType.getAttributeCount());
    assertEquals("Invalid featuretype name", "foo", featureType.getName().getLocalPart());
    assertEquals("Invalid name", "foo", featureType.getTypeName());
    GeometryDescriptor geometryDescriptor = featureType.getGeometryDescriptor();
    assertEquals("Invalid geometry attribute name", "location",
            geometryDescriptor.getLocalName());
}