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

    ResultMessages messages = new ResultMessages((ResultMessageType) ERROR);
    messages.add("foo");
    messages.add((String) null);
}