### Question:
ImportsValue { public void addImport(final DefaultImport defaultImport) { defaultImports.add(defaultImport); } ImportsValue();  ImportsValue(@MapsTo("defaultImports") final List<DefaultImport> defaultImports,
                        @MapsTo("wsdlImports") final List<WSDLImport> wsdlImports); List<DefaultImport> getDefaultImports(); void setDefaultImports(final List<DefaultImport> defaultImports); List<WSDLImport> getWSDLImports(); void setWSDLImports(final List<WSDLImport> wsdlImports); void addImport(final DefaultImport defaultImport); void addImport(final WSDLImport wsdlImport); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testAddImport() { ImportsValue tested = new ImportsValue(); for (int i = 0; i < DEFAULT_IMPORTS_QTY; i++) { tested.addImport(new DefaultImport(CLASS_NAME + i)); } for (int i = 0; i < WSDL_IMPORTS_QTY; i++) { tested.addImport(new WSDLImport(LOCATION + i, NAMESPACE + i)); } assertDefaultImports(tested.getDefaultImports(), DEFAULT_IMPORTS_QTY); assertWSDLImports(tested.getWSDLImports(), WSDL_IMPORTS_QTY); }