@Test
public void testAddGroupNamesWithNull() {

    TestItem item = new TestItem("member1");
    assertThrows(IllegalArgumentException.class,
            () -> item.addGroupNames(Arrays.asList("group-a", toNull(), "group-b")));
}