}
}
private void validatePortedSchema(final String newDatasetID) throws SodaError, InterruptedException {
// Grab the necessary objects for testing.
DatasetInfo sourceMeta = sourceDdl.loadDatasetInfo(UNITTEST_DATASET_ID);
DatasetInfo sinkMeta = sinkDdl.loadDatasetInfo(newDatasetID);
try {
// First, test the metadata (just the basics) via DatasetInfo.
TestCase.assertEquals(sourceMeta.getViewType(), sinkMeta.getViewType());
TestCase.assertEquals(sourceMeta.getName(), sinkMeta.getName());
TestCase.assertEquals(sourceMeta.getDescription(), sinkMeta.getDescription());
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();