@Test
public void testGetIpAndHost() throws Exception {

  dockerInspectCommand.getIpAndHost();
  assertEquals("inspect", StringUtils.join(",",
      dockerInspectCommand.getDockerCommandWithArguments()
          .get("docker-command")));
  assertEquals("{{range(.NetworkSettings.Networks)}}"
      + "{{.IPAddress}},{{end}}{{.Config.Hostname}}", StringUtils.join(",",
      dockerInspectCommand.getDockerCommandWithArguments().get("format")));
  assertEquals("foo", StringUtils.join(",",
      dockerInspectCommand.getDockerCommandWithArguments().get("name")));
  assertEquals(3,
      dockerInspectCommand.getDockerCommandWithArguments().size());
}