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

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