@Test
public void testGetRequestedRoleList() throws IOException {

    Path path = Paths.get("src/test/resources/athenz_role_uri.csr");
    String csr = new String(Files.readAllBytes(path));
    X509RoleCertRequest certReq = new X509RoleCertRequest(csr);
    Map<String, String[]> roles = certReq.getRequestedRoleList();
    assertEquals(roles.size(), 2);
    String[] list1 = roles.get("sports");
    assertEquals(list1.length, 1);
    assertEquals(list1[0], "readers");
    String[] list2 = roles.get("weather");
    assertEquals(list2.length, 2);
    assertEquals(list2[0], "readers");
    assertEquals(list2[1], "writers");
}