logger.log(Level.WARNING, "Skipping remote WFS test because they were not enabled via -DremoteOwsTests=true");
remoteWFSStatesAvailable = Boolean.FALSE;
} else {
// let's check if the remote WFS tests are runnable
try {
WFSDataStoreFactory factory = new WFSDataStoreFactory();
Map<String, Serializable> params = new HashMap(factory.getImplementationHints());
URL url = new URL(WFS_SERVER_URL + "service=WFS&request=GetCapabilities&version=1.1.0");
params.put(WFSDataStoreFactory.URL.key, url);
params.put(WFSDataStoreFactory.TRY_GZIP.key, Boolean.TRUE);
//give it five seconds to respond...
params.put(WFSDataStoreFactory.TIMEOUT.key, Integer.valueOf(5000));
DataStore remoteStore = factory.createDataStore(params);
FeatureSource fs = remoteStore.getFeatureSource(TOPP_STATES);
remoteWFSStatesAvailable = Boolean.TRUE;
// check a basic response can be answered correctly
Query dq = new Query(TOPP_STATES);
FilterFactory ff = CommonFactoryFinder.getFilterFactory(null);