assertEquals(p.get("threadPriority"), "" + KnownComponentNames.getDefaultThreadPrio(KnownComponentNames.ASYNC_REPLICATION_QUEUE_EXECUTOR));
assertEquals(p.get("aaa"), "bbb");
assertEquals(p.get("ddd"), "ccc");
assertTrue(p.containsKey("threadNameSuffix")); // don't check p.get("threadNameSuffix"), it depends on the node name
methodCalled = true;
return new ScheduledThreadPoolExecutor(1) {
@Override
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable commandP, long initialDelayP, long delayP, TimeUnit unitP) {
command = commandP;
initialDelay = initialDelayP;
delay = delayP;