public static void test2AsynchronousCallOnSameInstance2() {
BusinessModel bm1 = new BusinessModel();
AsynchronousFacade asynchronousFacade = (AsynchronousFacade)bm1;
asynchronousFacade.setTimeout(50);
long res1 = bm1.processBusinessModel2(1000);
AsynchronousTask asynchronousTask1 =
asynchronousFacade.getAsynchronousTask();
asynchronousFacade.setTimeout(200);
long res2 = bm1.processBusinessModel2(10);
AsynchronousTask asynchronousTask2 =
asynchronousFacade.getAsynchronousTask();
assertEquals(
"Method did not timeout !",
TIMEOUT,
asynchronousFacade.getResponseCode(asynchronousTask1));