@Test
public void testDomainGroupMembers() {

    List<DomainGroupMember> list1 = new ArrayList<>();
    list1.add(new DomainGroupMember().setMemberName("mbr1"));
    List<DomainGroupMember> list2 = new ArrayList<>();
    DomainGroupMembers mbr1 = new DomainGroupMembers();
    mbr1.setDomainName("dom1");
    mbr1.setMembers(list1);
    assertEquals("dom1", mbr1.getDomainName());
    assertEquals(list1, mbr1.getMembers());
    assertTrue(mbr1.equals(mbr1));
    assertFalse(mbr1.equals(null));
    DomainGroupMembers mbr2 = new DomainGroupMembers();
    assertFalse(mbr2.equals(mbr1));
    mbr2.setDomainName("dom2");
    assertFalse(mbr2.equals(mbr1));
    mbr2.setDomainName("dom1");
    assertFalse(mbr2.equals(mbr1));
    mbr2.setMembers(list2);
    assertFalse(mbr2.equals(mbr1));
    list2.add(new DomainGroupMember().setMemberName("mbr1"));
    assertTrue(mbr2.equals(mbr1));
}