@Test
public void testGetRoleTokenExpire() {

    
    SignedDomain signedDomain = createSignedDomainExpiration("coretech-expire", "weather");
    store.processDomain(signedDomain, false);
    Principal principal = SimplePrincipal.create("user_domain", "user1",
            "v=U1;d=user_domain;n=user1;s=signature", 0, null);
    ResourceContext context = createResourceContext(principal);
    RoleToken roleToken = zts.getRoleToken(context, "coretech-expire",
            null, 600, 1200, null);
    com.yahoo.athenz.auth.token.RoleToken token =
            new com.yahoo.athenz.auth.token.RoleToken(roleToken.getToken());
    assertTrue(token.getRoles().contains("role2"));
    assertFalse(token.getRoles().contains("role1"));
}