### Question:
AzureNativeFileSystemProvider implements FileSystemProvider { @Nonnull @Override @SuppressWarnings("squid:S1075") public List<DataSetFile> listFiles(@Nonnull final Path path, @Nonnull final Configuration conf) { final URI uri = path.toUri(); final CloudBlobClient client = createBlobClient(uri, conf); final String pathPrefix = uri.getScheme() + ": final String pathSuffix = "@" + uri.getHost() + (uri.getPort() > -1 ? ":" + uri.getPort() : "") + "/"; return StreamSupport.stream(listContainers(client).spliterator(), false) .map(container -> { final DataSetFile file = new DataSetFile(); file.setName(container.getName()); file.setDirectory(true); file.setModificationTime(container.getProperties().getLastModified().getTime()); file.setPath(pathPrefix + container.getName() + pathSuffix); return file; }) .collect(Collectors.toList()); }  @Nonnull @Override @SuppressWarnings("squid:S1075") List<DataSetFile> listFiles(@Nonnull final Path path, @Nonnull final Configuration conf); @Override boolean supportsPath(@Nonnull Path path);  }### Answer:
@Test @SuppressWarnings("unchecked") public void listFiles() { 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()); }