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);
dq.setFilter(ff.greater(ff.property("PERSONS"), ff.literal(20000000)));
FeatureCollection fc = fs.getFeatures(dq);
if(fc.size() != 1) {
logger.log(Level.WARNING, "Remote database status invalid, there should be one and only one " +
"feature with more than 20M persons in topp:states");
remoteStatesAvailable = Boolean.FALSE;