"&hdfs-port=" + hdfsUri.getPort());
Assert.assertNotNull("Received a repository", repo);
org.junit.Assert.assertTrue("Repo is a FileSystem repo",
repo instanceof FileSystemDatasetRepository);
MetadataProvider provider = ((FileSystemDatasetRepository) repo)
.getMetadataProvider();
Assert.assertTrue("Repo is using a HCatalogExternalMetadataProvider",
provider instanceof HCatalogExternalMetadataProvider);
// verify location
DatasetDescriptor created = provider.create("test",
new DatasetDescriptor.Builder()
.schemaLiteral("\"string\"")
.build());
Assert.assertEquals("Location should be in HDFS",
"hdfs", created.getLocation().getScheme());