144145146147148149150151152153154
assertEquals("1:3", actual); } // invoke another async method on the same reference { asyncBean.method2(4); Future<?> futureResult = AsyncUtils.getFutureResult(asyncBean); String actual = (String) futureResult.get(2, TimeUnit.SECONDS);