WorkflowInstanceExecutor { public int getQueueRemainingCapacity() { return queue.remainingCapacity(); } WorkflowInstanceExecutor(int maxQueueSize, int threadCount, int notifyThreshold, int awaitTerminationSeconds,
      int keepAliveSeconds,
      ThreadFactory threadFactory); int getThreadCount(); void waitUntilQueueSizeLowerThanThreshold(DateTime waitUntil); void wakeUpDispatcherIfNeeded(); void execute(Runnable runnable); int getQueueRemainingCapacity(); void shutdown();  }
@Test public void testDummyGetters() { WorkflowInstanceExecutor t = new WorkflowInstanceExecutor(3, 2, 1, 3, 4, threadFactory); assertThat(t.getQueueRemainingCapacity(), is(3)); }