@Test
    @ConfiguredWithReadme("docker/README.md")
    public void configure_docker_cloud() {
        final DockerCloud docker = DockerCloud.getCloudByName("docker");
        assertNotNull(docker);
        assertNotNull(docker.getDockerApi());
        assertNotNull(docker.getDockerApi().getDockerHost());
        assertEquals(
                "unix:///var/run/docker.sock",
                docker.getDockerApi().getDockerHost().getUri());

        final DockerTemplate template = docker.getTemplate("jenkins/agent");
        checkTemplate(
                template,
                "docker-agent",
                "jenkins",
                "/home/jenkins/agent",
                "10",
                new String[] {
                    "type=tmpfs,destination=/run",
                    "type=bind,source=/var/run/docker.sock,destination=/var/run/docker.sock",
                    "type=volume,src=hello,dst=/world"
                },
                "hello=world\nfoo=bar");
        assertTrue(template.getRetentionStrategy() instanceof DockerOnceRetentionStrategy);
        assertEquals(1, ((DockerOnceRetentionStrategy) template.getRetentionStrategy()).getIdleMinutes());
    }
@author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
integrations/src/test/java/io/jenkins/plugins/casc/DockerCloudTest.java