@Test
@SuppressWarnings("unchecked")
public void listFiles() {

    // Test listing containers
    final AzureNativeFileSystemProvider provider = new AzureNativeFileSystemProvider() {
        @Nonnull
        @Override
        protected Iterable<CloudBlobContainer> listContainers(@Nonnull final CloudBlobClient client) {
            return Arrays.asList(createContainer("container1", client), createContainer("container2", client));
        }
    };
    final List<DataSetFile> files = provider.listFiles(new Path(WASB), new Configuration(false));
    Assert.assertThat(files, CoreMatchers.hasItems(isDataSetFile("container1"), isDataSetFile("container2")));
    Assert.assertEquals(2, files.size());
}