@Test
public void testInvalidateAccessToken() {

    ByteBuffer username = getAcceptableUsername();
    ByteBuffer password = getSecurePassword();
    service.create(username, password, Role.ADMIN);
    AccessToken token = service.tokens.issue(username);
    service.tokens.expire(token);
    Assert.assertFalse(service.tokens.isValid(token));
}