@Test
public void testSetMembersInDomainEmptyMembers() {

    String domainName = "no-role-members";
    List<RoleMember> roleMembers = new ArrayList<>();
    roleMembers.add(new RoleMember().setMemberName("user.admin"));
    Role role = new Role().setMembers(null).setRoleMembers(roleMembers);
    List<Role> roles = new ArrayList<>();
    roles.add(role);
    Domain domain = new Domain().setModified(Timestamp.fromCurrentTime());
    AthenzDomain athenzDomain = new AthenzDomain(domainName);
    athenzDomain.setDomain(domain);
    athenzDomain.setRoles(roles);
    Mockito.when(mockObjStore.getConnection(true, false)).thenReturn(mockJdbcConn);
    Mockito.when(mockJdbcConn.getAthenzDomain(domainName)).thenReturn(athenzDomain);
    ObjectStore saveStore = zms.dbService.store;
    zms.dbService.store = mockObjStore;
    AthenzDomain resAthenzDomain = zms.dbService.getAthenzDomain(domainName, false);
    assertNotNull(resAthenzDomain.getRoles());
    List<String> members = resAthenzDomain.getRoles().get(0).getMembers();
    assertEquals(members.size(), 1);
    assertEquals(members.get(0), "user.admin");
    zms.dbService.store = saveStore;
}