}
@Test
public void testSecureAndTransactionalInterceptor()
{
ContextFactory.initSessionContext(new MockHttpSession());
defineSimpleWebBeanInterceptor(SecureAndTransactionalInterceptor.class);
Bean<SecureAndTransactionalComponent> bean = defineSimpleWebBean(SecureAndTransactionalComponent.class);
SecureAndTransactionalComponent payment = getManager().getInstance(bean);
Assert.assertFalse(SecureAndTransactionalComponent.CALL);
payment.pay();
Assert.assertTrue(SecureAndTransactionalComponent.CALL);
ContextFactory.destroySessionContext(new MockHttpSession());
}