@Test
@Ignore("Requires HTTP connection to a WFS server serving specific FeatureType")
public void testGeoServerWFSWorks() throws MismatchedDimensionException, FactoryException, TransformException, ServiceException, IOException, JSONException {

    String endPoint = "http://localhost:8081/geoserver/wfs";
    RegionSet kunnatWFS = new RegionSet();
    kunnatWFS.setId(-1);
    kunnatWFS.setName("oskari:kunnat2013");
    kunnatWFS.setSrs_name("EPSG:3067");
    kunnatWFS.setAttributes(getAttributes("kuntakoodi", "kuntanimi", endPoint));
    List<Region> regions = RegionSetHelper.getRegions(kunnatWFS, "EPSG:3067");
    assertEquals(320, regions.size());
    for (Region region : regions) {
        if ("082".equals(region.getCode())) {
            assertEquals("Hattula", region.getName());
        } else if ("091".equals(region.getCode())) {
            assertEquals("Helsinki", region.getName());
        }
    }
}