assertThat(container.getId(), not(isEmptyString()));
boolean add = tmpContainers.add(container.getId());
dockerClient.startContainer(container.getId());
ContainerInspectResponse containerInspectResponse = dockerClient
.inspectContainer(container.getId());
LOG.info("Container Inspect: {}", containerInspectResponse.toString());
assertThat(containerInspectResponse.config, is(notNullValue()));
assertThat(containerInspectResponse.getId(), not(isEmptyString()));
assertThat(containerInspectResponse.getId(),
startsWith(container.getId()));
assertThat(containerInspectResponse.getImageId(), not(isEmptyString()));
assertThat(containerInspectResponse.getState(), is(notNullValue()));
assertThat(containerInspectResponse.getState().running, is(true));
if (!containerInspectResponse.getState().running) {
assertThat(containerInspectResponse.getState().exitCode,
is(equalTo(0)));
}
}