@Test
public void testExtractRoleName() {

    assertEquals(AthenzUtils.extractRoleName("athenz:role.readers"), "readers");
    assertEquals(AthenzUtils.extractRoleName("athenz.api:role.readers"), "readers");
    assertEquals(AthenzUtils.extractRoleName("athenz.api.test:role.readers"), "readers");
    assertNull(AthenzUtils.extractRoleName("athenz:roles.readers"));
    assertNull(AthenzUtils.extractRoleName("athenz.role.readers"));
    assertNull(AthenzUtils.extractRoleName("athenz:role."));
    assertNull(AthenzUtils.extractRoleName(":role.readers"));
    assertNull(AthenzUtils.extractRoleName("athenz.readers"));
}