### Question:
TaskConfig { public ContainerConfig containerConfig(final ImageInfo imageInfo, final Optional<String> dockerVersion) { final ContainerConfig.Builder builder = ContainerConfig.builder(); builder.image(job.getImage()); builder.cmd(job.getCommand()); builder.hostname(job.getHostname()); builder.env(containerEnvStrings()); builder.exposedPorts(containerExposedPorts()); builder.volumes(volumes().keySet()); builder.labels(job.getLabels()); for (final ContainerDecorator decorator : containerDecorators) { decorator.decorateContainerConfig(job, imageInfo, dockerVersion, builder); } return builder.build(); } private  TaskConfig(final Builder builder); String containerName(); ContainerConfig containerConfig(final ImageInfo imageInfo,
                                         final Optional<String> dockerVersion); Map<String, PortMapping> ports(); Map<String, String> containerEnv(); ServiceRegistration registration(); HealthCheck healthCheck(); HostConfig hostConfig(final Optional<String> dockerVersion); static Builder builder(); String containerImage(); String name(); @Override String toString();  }### Answer:
@Test public void testContainerConfig() throws Exception { final TaskConfig taskConfig = TaskConfig.builder() .namespace("test") .host(HOST) .job(JOB) .build(); final ImageInfo imageInfo = mock(ImageInfo.class); final ContainerConfig containerConfig = taskConfig.containerConfig( imageInfo, Optional.absent()); assertThat(ImmutableMap.copyOf(containerConfig.labels()), equalTo(LABELS)); }