// create a new schema without geometries to simulate failure on scanning all the typeNames
DataStore ds = null;
try {
ds = new PostgisNGDataStoreFactory().createDataStore(params);
final List<AttributeDescriptor> schema = new ArrayList<AttributeDescriptor>();
schema.add(new AttributeDescriptorImpl(new AttributeTypeImpl(new NameImpl("name"),
String.class, false, false, null, null, null), new NameImpl("name"), 0, 0,
true, ""));
SimpleFeatureType featureType = new SimpleFeatureTypeImpl(new NameImpl(noGeomFirst),
schema, null, false, null, null, null);
ds.createSchema(featureType);