### Question:
WSDLImport { public static WSDLImport fromString(String importValue) throws Exception { if (!isValidString(importValue)) { throw new Exception("The value: " + importValue + " is not a valid WSDL Import."); } String[] importParts = splitImportString(importValue); WSDLImport wsdlImport = new WSDLImport(importParts[1], importParts[2]); return wsdlImport; } WSDLImport();  WSDLImport(@MapsTo("location") final String location,
                      @MapsTo("namespace") final String namespace); static Boolean isValidString(String importValue); static WSDLImport fromString(String importValue); String getLocation(); void setLocation(final String location); String getNamespace(); void setNamespace(final String namespace); @Override String toString();  }### Answer:
@Test(expected = Exception.class) public void fromStringInvalid() throws Exception { String invalidString = "invalid" + DELIMITER + LOCATION + DELIMITER + NAMESPACE; WSDLImport.fromString(invalidString); }