### Question:
DefaultImport { public static DefaultImport fromString(String importValue) throws Exception { if (!isValidString(importValue)) { throw new Exception("The value: " + importValue + " is not a valid Default Import."); } String[] importParts = splitImportString(importValue); DefaultImport defaultImport = new DefaultImport(importParts[1]); return defaultImport; } DefaultImport();  DefaultImport(@MapsTo("className") final String className); static Boolean isValidString(String importValue); static DefaultImport fromString(String importValue); String getClassName(); void setClassName(final String className); @Override String toString(); static final String DELIMITER; static final String IDENTIFIER; }### Answer:
@Test(expected = Exception.class) public void fromStringInvalid() throws Exception { String invalidString = "invalid" + DELIMITER + CLASS_NAME; DefaultImport.fromString(invalidString); }