@Test
public void testValidateExpiration() throws Exception {

  JwtAuthenticationProperties properties = createTestProperties();
  JwtAuthenticationFilter filter = new JwtAuthenticationFilter(properties, null, null);
  boolean isValid = filter.validateExpiration(getSignedToken());
  assertEquals(true, isValid);
  isValid = filter.validateExpiration(getInvalidToken());
  assertEquals(false, isValid);
}