public void testLazyTest() throws Throwable {
JavaSpaceInterceptor si = new JavaSpaceInterceptor(template);
si.setSynchronous(false);
ProxyFactory pf = new ProxyFactory(new Class[] { ITestBean.class });
pf.addAdvice(new PerformanceMonitorInterceptor());
pf.addAdvice(si);
ITestBean proxy = (ITestBean) pf.getProxy();
// nothing before the call
assertNull(template.getSpace().readIfExists(new MethodResultEntry(), template.getCurrentTransaction(), 100));
ITestBean lazyResult = proxy.getSpouse();