}
public void testdataTypeInherit() {
InvCatalogImpl cat = TestCatalogAll.open(urlString, true);
InvDataset ds = null;
FeatureType s = null;
String val = null;
ds = cat.findDatasetByID("top");
s = ds.getDataType();
assert (s == null) : s;
ds = cat.findDatasetByID("nest1");
s = ds.getDataType();
assert (s == FeatureType.GRID) : s;
ds = cat.findDatasetByID("nest11");
s = ds.getDataType();
assert (s == FeatureType.GRID) : s;
ds = cat.findDatasetByID("nest12");
s = ds.getDataType();
assert (s.toString().equalsIgnoreCase("Image")) : s;
ds = cat.findDatasetByID("nest121");
s = ds.getDataType();
assert (s == FeatureType.GRID) : s;