AppSchemaDataAccess implements DataAccess<FeatureType, Feature> { public FeatureType getSchema(Name typeName) throws IOException { return (FeatureType) getMappingByElement(typeName).getTargetFeature().getType(); } AppSchemaDataAccess(Set<FeatureTypeMapping> mappings); Name[] getTypeNames(); FeatureType getSchema(Name typeName); FeatureTypeMapping getMappingByName(Name typeName); FeatureTypeMapping getMappingByElement(Name typeName); boolean hasName(Name name); boolean hasElement(Name typeName); @SuppressWarnings("unchecked") Query unrollQuery(Query query, FeatureTypeMapping mapping); static Filter unrollFilter(Filter complexFilter, FeatureTypeMapping mapping); void dispose(); ServiceInfo getInfo(); List<Name> getNames(); void createSchema(FeatureType featureType); FeatureSource<FeatureType, Feature> getFeatureSource(Name typeName); void updateSchema(Name typeName, FeatureType featureType); void removeSchema(Name typeName); FeatureSource<FeatureType, Feature> getFeatureSourceByName(Name typeName); Feature findFeature(FeatureId id, Hints hints);  }
@Test public void testTargetType() throws IOException { assertEquals(targetType, dataStore.getSchema(targetName)); }