@Test
public void testInsertGroupMembersFailure() {

    final String domainName = "insert-group-members-errs";
    final String groupName = "group1";
    Mockito.when(mockJdbcConn.insertGroupMember(anyString(), anyString(), any(GroupMember.class), anyString(),
            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"));
    groupMembers.add(new GroupMember().setMemberName("user.jane"));
    assertFalse(zms.dbService.insertGroupMembers(mockDomRsrcCtx, mockJdbcConn, groupMembers,
            domainName, groupName, adminUser, auditRef, "unit-test"));
    zms.dbService.store = saveStore;
}