@Test
public void testGetConfiguredRoleExpiryTimeMinsInvalidDomainSettings() {

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