### Question:
DefinitionsPropertyWriter { public void setWSDLImports(List<WSDLImport> wsdlImports) { wsdlImports.stream() .map(PropertyWriterUtils::toImport) .forEach(definitions.getImports()::add); } DefinitionsPropertyWriter(Definitions definitions); void setExporter(String exporter); void setExporterVersion(String version); void setProcess(Process process); void setDiagram(BPMNDiagram bpmnDiagram); void setRelationship(Relationship relationship); void setWSDLImports(List<WSDLImport> wsdlImports); void addAllRootElements(Collection<? extends RootElement> rootElements); Definitions getDefinitions();  }### Answer:
@Test public void setWSDLImports() { final String LOCATION = "location"; final String NAMESPACE = "namespace"; final int QTY = 10; List<WSDLImport> wsdlImports = new ArrayList<>(); for (int i = 0; i < QTY; i++) { wsdlImports.add(new WSDLImport(LOCATION + i, NAMESPACE + i)); } tested.setWSDLImports(wsdlImports); List<Import> imports = definitions.getImports(); assertEquals(QTY, imports.size()); for (int i = 0; i < QTY; i++) { assertEquals(LOCATION + i, imports.get(i).getLocation()); assertEquals(NAMESPACE + i, imports.get(i).getNamespace()); } }