Exporters { public static Collection<String> getFormats(ExportersLoader loader) { Objects.requireNonNull(loader); return loader.loadExporters().stream().map(Exporter::getFormat).collect(Collectors.toSet()); } private  Exporters(); static Collection<String> getFormats(ExportersLoader loader); static Collection<String> getFormats(); static Exporter getExporter(ExportersLoader loader, String format); static Exporter getExporter(String format); static DataSource createDataSource(Path directory, String fileNameOrBaseName, DataSourceObserver observer); static DataSource createDataSource(Path file, DataSourceObserver observer); static DataSource createDataSource(Path file); static void export(ExportersLoader loader, String format, Network network, Properties parameters, DataSource dataSource); static void export(String format, Network network, Properties parameters, DataSource dataSource); static void export(ExportersLoader loader, String format, Network network, Properties parameters, Path file); static void export(String format, Network network, Properties parameters, Path file); static void export(ExportersLoader loader, String format, Network network, Properties parameters, String directory, String baseName); static void export(String format, Network network, Properties parameters, String directory, String baseName);  }
@Test public void getFormats() { Collection<String> formats = Exporters.getFormats(loader); assertEquals(1, formats.size()); assertTrue(formats.contains(TEST_FORMAT)); }