@Test
public void testAddErrorOnTokenCallErrorTrue() {

	AtomicBoolean callBackCalled = new AtomicBoolean(false);
	TokenLifecycleStrategy s = new ConfigurableTokenLifecycleStrategy(true, true, true, true, null);
	s.afterTokenCallError(new TokenLifecycleStrategyCallback(null, null) {
		@Override
		public void addTokenError(String errorMessage, Exception exception) {
			Assert.assertEquals("my message", exception.getMessage());
			callBackCalled.set(true);
		}
		
	}, new TokenWrapper(), new Exception("my message"));
	Assert.assertTrue(callBackCalled.get());
}