### Question:
AssociationDeclaration { public static AssociationDeclaration fromString(String encoded) { return AssociationParser.parse(encoded); } AssociationDeclaration(Direction direction, Type type, String source, String target); static AssociationDeclaration fromString(String encoded); String getSource(); void setSource(String source); String getTarget(); void setTarget(String target); Direction getDirection(); void setDirection(Direction direction); void setType(Type type); Type getType(); @Override String toString();  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testFromStringNull() { AssociationDeclaration.fromString(null); }
@Test(expected = IllegalArgumentException.class) public void testFromStringEmpty() { AssociationDeclaration.fromString(""); }