@Test
public void testGetFeatureTypeNameGeoServer() throws IOException {

    createTestProtocol(GEOS_ARCHSITES.CAPABILITIES);
    try {
        wfs.getFeatureTypeName("nonExistentTypeName");
        fail("Expected IAE");
    } catch (IllegalArgumentException e) {
        assertTrue(true);
    }
    // test against a geoserver capabilities
    assertEquals(GEOS_ARCHSITES.TYPENAME, wfs
            .getFeatureTypeName(GEOS_ARCHSITES.FEATURETYPENAME));
    assertEquals(GEOS_POI.TYPENAME, wfs.getFeatureTypeName(GEOS_POI.FEATURETYPENAME));
    assertEquals(GEOS_ROADS.TYPENAME, wfs.getFeatureTypeName(GEOS_ROADS.FEATURETYPENAME));
    assertEquals(GEOS_STATES.TYPENAME, wfs.getFeatureTypeName(GEOS_STATES.FEATURETYPENAME));
    assertEquals(GEOS_TASMANIA_CITIES.TYPENAME, wfs
            .getFeatureTypeName(GEOS_TASMANIA_CITIES.FEATURETYPENAME));
    assertEquals(GEOS_TIGER_ROADS.TYPENAME, wfs
            .getFeatureTypeName(GEOS_TIGER_ROADS.FEATURETYPENAME));
    // test against a cubewerx capabilities
    createTestProtocol(CUBEWERX_GOVUNITCE.CAPABILITIES);
    assertEquals(CUBEWERX_GOVUNITCE.TYPENAME, wfs
            .getFeatureTypeName(CUBEWERX_GOVUNITCE.FEATURETYPENAME));
    assertEquals(CUBEWERX_ROADSEG.TYPENAME, wfs
            .getFeatureTypeName(CUBEWERX_ROADSEG.FEATURETYPENAME));
}