RoutingDockerRunner extends AbstractRoutingRunner<DockerRunner> implements DockerRunner { @Override public void poll(RunState runState) { runner(runState).poll(runState); } RoutingDockerRunner(DockerRunnerFactory dockerRunnerFactory, Function<RunState, String> runnerId); @Override String start(RunState runState, RunSpec runSpec); @Override void poll(RunState runState); @Override void cleanup();  }
@Test public void testUsesCreatesRunnerOnPoll() { dockerRunner.poll(runState); assertThatCreateCountersContains("default"); verify(createdRunners.get("default")).poll(runState); }