@Test
public void testDetermineTokenTimeoutWithRoleExpiry() {

    DataCache data = new DataCache();
    Role role1 = new Role().setName("athenz:role.readers").setTokenExpiryMins(10);
    data.processRole(role1);
    DomainData domainData = new DomainData();
    data.setDomainData(domainData);
    Set<String> roles = new HashSet<>();
    roles.add("readers");
    // token expiry is in mins and our api requires seconds
    // so we're going to get 600 secs instead of 10 mins
    // configured value
    assertEquals(zts.determineTokenTimeout(data, roles, null, 1200), 600);
}