KubernetesDockerRunner implements DockerRunner { @VisibleForTesting static boolean isMainContainer(String name) { return name.equals(MAIN_CONTAINER_NAME); } @VisibleForTesting  KubernetesDockerRunner(String id, Fabric8KubernetesClient client, StateManager stateManager, Stats stats,
                         KubernetesGCPServiceAccountSecretManager serviceAccountSecretManager,
                         Debug debug, String styxEnvironment,
                         Set<String> secretWhitelist,
                         int cleanupPodsIntervalSeconds,
                         int podDeletionDelaySeconds,
                         Time time, ScheduledExecutorService scheduledExecutor);   KubernetesDockerRunner(String id, Fabric8KubernetesClient client, StateManager stateManager, Stats stats,
                         KubernetesGCPServiceAccountSecretManager serviceAccountSecretManager,
                         Debug debug, String styxEnvironment, Set<String> secretWhitelist); @Override String start(RunState runState, RunSpec runSpec); @Override void poll(RunState runState); @Override void cleanup(); @Override void close();  }
@Test public void shouldRecognizeMainContainer() { assertThat(KubernetesDockerRunner.isMainContainer(MAIN_CONTAINER_NAME), is(true)); assertThat(KubernetesDockerRunner.isMainContainer(KEEPALIVE_CONTAINER_NAME), is(false)); assertThat(KubernetesDockerRunner.isMainContainer("foobar"), is(false)); }