@Test
public void testValidateRoleBasedAccessCheckValid() {

    assertTrue(zms.validateRoleBasedAccessCheck(Collections.emptyList(), null, "domain1", "domain1"));
    List<String> roles = new ArrayList<>();
    roles.add("readers");
    assertTrue(zms.validateRoleBasedAccessCheck(roles, null, "domain1", "domain1"));
    roles = new ArrayList<>();
    roles.add("domain1:role.readers");
    roles.add("domain1:role.writers");
    assertTrue(zms.validateRoleBasedAccessCheck(roles, null, "domain1", "domain1"));
    assertTrue(zms.validateRoleBasedAccessCheck(roles, null, "domain1", "domain2"));
}