@Test
public void testUpdateGroupMemberDisabledStateFailure() {

    final String domainName = "update-group-members-disabled-errs";
    final String groupName = "group1";
    Mockito.when(mockJdbcConn.updateGroupMemberDisabledState(anyString(), anyString(), anyString(), anyString(),
            anyInt(), anyString())).thenReturn(false).thenThrow(new ResourceException(400));
    ObjectStore saveStore = zms.dbService.store;
    zms.dbService.store = mockObjStore;
    List<GroupMember> groupMembers = new ArrayList<>();
    groupMembers.add(new GroupMember().setMemberName("user.joe").setSystemDisabled(1));
    groupMembers.add(new GroupMember().setMemberName("user.jane").setSystemDisabled(1));
    assertFalse(zms.dbService.updateGroupMemberDisabledState(mockDomRsrcCtx, mockJdbcConn, groupMembers,
            domainName, groupName, adminUser, auditRef, "unit-test"));
    zms.dbService.store = saveStore;
}