@Test
public void testNormalizeRoleMembersCombined() {

    ArrayList<RoleMember> roleMembers = new ArrayList<>();
    roleMembers.add(new RoleMember().setMemberName("user.joe"));
    roleMembers.add(new RoleMember().setMemberName("user.joe"));
    roleMembers.add(new RoleMember().setMemberName("user.joe"));
    roleMembers.add(new RoleMember().setMemberName("user.jane"));
    roleMembers.add(new RoleMember().setMemberName("coretech.storage"));
    roleMembers.add(new RoleMember().setMemberName("coretech.storage"));
    roleMembers.add(new RoleMember().setMemberName("weather.storage"));
    roleMembers.add(new RoleMember().setMemberName("weather.api.access"));
    ArrayList<String> membersList = new ArrayList<>();
    membersList.add("coretech.storage");
    membersList.add("user.john");
    Role role = createRoleObject("TestRole", "Role1", null, roleMembers);
    role.setMembers(membersList);
    zms.normalizeRoleMembers(role);
    List<RoleMember> members = role.getRoleMembers();
    assertNotNull(members);
    assertEquals(members.size(), 6);
    
    List<String> checkList = new ArrayList<>();
    checkList.add("user.joe");
    checkList.add("user.jane");
    checkList.add("user.john");
    checkList.add("weather.api.access");
    checkList.add("coretech.storage");
    checkList.add("weather.storage");
    checkRoleMember(checkList, members);
}