@Test(expected = IllegalArgumentException.class)
public void testAdd02_null() {

    ResultMessage msg1 = ResultMessage.fromCode("foo");
    ResultMessages messages = new ResultMessages((ResultMessageType) ERROR, msg1);
    messages.add((ResultMessage) null);
}