public void testWaiting() throws NoSuchMethodException, InterruptedException {
final ReceptionSynchronizer cut = new ReceptionSynchronizer();
ScheduledExecutorService pool = Executors.newScheduledThreadPool(1);
final Method method = ReceptionSynchronizerTest.class.getDeclaredMethod("testWaiting");
long startTime = System.currentTimeMillis();
pool.schedule(new Runnable() {
@Override
public void run() {
cut.registerInvocation(method);
}