ResourceUtils { public static String roleResourceName(String domainName, String roleName) { return generateResourceName(domainName, roleName, ServerCommonConsts.OBJECT_ROLE); }  static String roleResourceName(String domainName, String roleName); static String groupResourceName(String domainName, String groupName); static String serviceResourceName(String domainName, String serviceName);  }
@Test public void testRoleResourceName() { assertEquals(ResourceUtils.roleResourceName("athenz", "role1"), "athenz:role.role1"); assertEquals(ResourceUtils.roleResourceName("athenz.api", "role1"), "athenz.api:role.role1"); }