void () { final MyTestVictim victim = new MyTestVictim(); final RequestsMerger merger = new RequestsMerger(victim, victim); for (int i = 0; i < 50; i++) { merger.request(); if (i == 0) { Assert.assertEquals(true, victim.isExecutionSubmitted()); } Assert.assertEquals(false, victim.isExecuted()); } }