### Question:
Exports implements ContentHandler { public Collection<Export> getExports() { return Collections.unmodifiableCollection(exportsMap.values()); } Exports();  Exports(final Export export);  Exports(final Set<Export> exportTypes);  Exports(final Class<?> resultType);  Exports(final String resultType); void addExport(Export export); Collection<Export> getExports(); Set<Class<?>> getResultTypes(); boolean hasExports(); Export getExport(Class<?> type); Result[] createResults(); Collection<Export> getProducts(); static List<Object> extractResults(final Result[] results, final Exports exports);  }### Answer:
@Test public void createSingleExports() { Exports exports = new Exports(StringResult.class); Collection<Export> exportTypes = exports.getExports(); assertFalse(exportTypes.isEmpty()); assertEquals(exportTypes.iterator().next().getType(), StringResult.class); }
@Test public void createMultipleExports() { Set<Export> results = new HashSet<Export>(); results.add(new Export(StringResult.class)); results.add(new Export(JavaResult.class)); Exports exports = new Exports(results); Collection<Export> exportTypes = exports.getExports(); assertEquals(2, exportTypes.size()); }