@Test
public void testDomainGroupMember() {

    List<GroupMember> list1 = new ArrayList<>();
    list1.add(new GroupMember().setGroupName("group1"));
    List<GroupMember> list2 = new ArrayList<>();
    DomainGroupMember mbr1 = new DomainGroupMember();
    mbr1.setMemberName("mbr1");
    mbr1.setMemberGroups(list1);
    assertEquals("mbr1", mbr1.getMemberName());
    assertEquals(list1, mbr1.getMemberGroups());
    assertTrue(mbr1.equals(mbr1));
    assertFalse(mbr1.equals(null));
    DomainGroupMember mbr2 = new DomainGroupMember();
    assertFalse(mbr2.equals(mbr1));
    mbr2.setMemberName("mbr2");
    assertFalse(mbr2.equals(mbr1));
    mbr2.setMemberName("mbr1");
    assertFalse(mbr2.equals(mbr1));
    mbr2.setMemberGroups(list2);
    assertFalse(mbr2.equals(mbr1));
    list2.add(new GroupMember().setGroupName("group1"));
    assertTrue(mbr2.equals(mbr1));
    GroupMember mbr3 = new GroupMember();
    mbr3.init();
    assertTrue(mbr3.getActive());
    mbr3.setActive(false);
    mbr3.init();
    assertFalse(mbr3.getActive());
}