@Test
public void testDeleteGroupMembership() {

    final String domainName = "del-group-mbr-test";
    final String groupName1 = "group1";
    ZMSClient client = createClient(systemAdminUser);
    ZMSRDLGeneratedClient c = Mockito.mock(ZMSRDLGeneratedClient.class);
    client.setZMSRDLGeneratedClient(c);
    TopLevelDomain dom1Mock = Mockito.mock(TopLevelDomain.class);
    Domain domainMock = Mockito.mock(Domain.class);
    Mockito.when(c.postTopLevelDomain(AUDIT_REF, dom1Mock)).thenReturn(domainMock);
    Group group1 = createGroupObject(client, domainName, groupName1, "user.joe", "user.jane");
    Mockito.when(c.putGroup(domainName, groupName1, AUDIT_REF, group1)).thenReturn(group1);
    TopLevelDomain dom1 = createTopLevelDomainObject(domainName, "Test Domain1", "testOrg", systemAdminFullUser);
    client.postTopLevelDomain(AUDIT_REF, dom1);
    client.putGroup(domainName, groupName1, AUDIT_REF, group1);
    client.deleteGroupMembership(domainName, groupName1, "user.joe", AUDIT_REF);
    client.deleteTopLevelDomain("MbrDelDom1", AUDIT_REF);
}