assertNull(target.getString());
target.setString("foo");
assertTrue(Proxy.isProxyClass(source.getTarget().getClass()));
assertEquals("foo", source.getTarget().getString());
ctx.clearIdentifier(HttpSessionScopeContainer.HTTP_IDENTIFIER);
sessionScope.onEvent(new HttpSessionEnd(this, session1));
//second session
Object session2 = new Object();
ctx.setIdentifier(HttpSessionScopeContainer.HTTP_IDENTIFIER, session2);
sessionScope.onEvent(new HttpSessionStart(this, session2));
Target target2 = (Target) targetComponent.getServiceInstance();
Source source2 = (Source) sourceComponent.getServiceInstance();
assertEquals("foo", target2.getString());
assertEquals("foo", source2.getTarget().getString());
source2.getTarget().setString("baz");
assertEquals("baz", source2.getTarget().getString());
assertEquals("baz", target2.getString());
assertEquals("baz", target.getString());
ctx.clearIdentifier(HttpSessionScopeContainer.HTTP_IDENTIFIER);
sessionScope.onEvent(new HttpSessionEnd(this, session2));
moduleScope.stop();
sessionScope.stop();
}