TestCase.assertEquals(sourceMeta.getCategory(), sinkMeta.getCategory());
TestCase.assertEquals(sourceMeta.getTags(), sinkMeta.getTags());
TestCase.assertEquals(sourceMeta.getRights(), sinkMeta.getRights());
// Next, test the schema by grabbing Dataset and Column objects from DatasetInfo.
Dataset sourceSchema = (Dataset) sourceMeta;
Dataset sinkSchema = (Dataset) sinkMeta;
List<Column> sourceColumns = sourceSchema.getColumns();
List<Column> sinkColumns = sinkSchema.getColumns();
TestCase.assertEquals(sourceColumns.size(), sinkColumns.size());
for (int i = 0; i < sourceColumns.size(); i++) {
TestCase.assertEquals(sourceColumns.get(i).getName(), sinkColumns.get(i).getName());
TestCase.assertEquals(sourceColumns.get(i).getFieldName(), sinkColumns.get(i).getFieldName());