@Test
public void testDetermineRoleCertTimeoutNoSetting() {

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