@Test
public void testGetConfiguredRoleExpiryTimeMinsRoleSettings() {

    DataCache data = new DataCache();
    Role role = new Role().setName("athenz:role.admin").setCertExpiryMins(180);
    data.processRole(role);
    DomainData domainData = new DomainData();
    domainData.setRoleCertExpiryMins(120);
    data.setDomainData(domainData);
    Set<String> roles = new HashSet<>();
    assertEquals(zts.getConfiguredRoleCertExpiryTimeMins(data, roles), 120);
    roles.add("readers");
    assertEquals(zts.getConfiguredRoleCertExpiryTimeMins(data, roles), 120);
    roles.add("admin");
    assertEquals(zts.getConfiguredRoleCertExpiryTimeMins(data, roles), 180);
}