@Test
public void testGetConfiguredRoleExpiryTimeMinsMultipleRoleSettings() {

    DataCache data = new DataCache();
    Role role1 = new Role().setName("athenz:role.admin").setCertExpiryMins(60);
    data.processRole(role1);
    Role role2 = new Role().setName("athenz:role.readers").setCertExpiryMins(80);
    data.processRole(role2);
    Role role3 = new Role().setName("athenz:role.writers").setCertExpiryMins(70);
    data.processRole(role3);
    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), 80);
    roles.add("admin");
    assertEquals(zts.getConfiguredRoleCertExpiryTimeMins(data, roles), 60);
    roles.add("writers");
    assertEquals(zts.getConfiguredRoleCertExpiryTimeMins(data, roles), 60);
}