@Test
public void testDetermineTokenTimeoutWithDomainExpiryBigger() {

    DataCache data = new DataCache();
    Role role1 = new Role().setName("athenz:role.readers");
    data.processRole(role1);
    DomainData domainData = new DomainData().setTokenExpiryMins(25);
    data.setDomainData(domainData);
    Set<String> roles = new HashSet<>();
    roles.add("readers");
    assertEquals(zts.determineTokenTimeout(data, roles, null, 1200), 1200);
    // with no expiry values specified by the caller we'll
    // get our limit of 25 mins
    assertEquals(zts.determineTokenTimeout(data, roles, null, null), 1500);
}