logger.log(Level.WARNING, "Skipping remote OWS test because they were not enabled via -DremoteOwsTests=true");
remoteStatesAvailable = 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");
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);
remoteStatesAvailable = Boolean.TRUE;
// check a basic response can be answered correctly
DefaultQuery dq = new DefaultQuery(TOPP_STATES);
FilterFactory ff = CommonFactoryFinder.getFilterFactory(null);