@Test
public void doPost() throws IOException {

    dockerClientFty.addConfigurator(dockerClient ->
            dockerClient.setSupportedAPIVersion(DockerCloudUtils.DOCKER_API_TARGET_VERSION));
    CheckConnectivityController ctrl = createController();
    TestHttpServletRequest request = new TestHttpServletRequest();
    request.parameters(TestUtils.getSampleDockerConfigParams());
    EditableNode responseNode = Node.EMPTY_OBJECT.editNode();
    ctrl.doPost(request, new TestHttpServletResponse(), responseNode);
    assertThat(responseNode.getObject("version", null)).isNotNull();
    TestDockerClient client = dockerClientFty.getClient();
    Node version = client.getVersion();
    EditableNode versionNode = responseNode.getObject("version");
    assertThat(versionNode).isEqualTo(version);
    Node info = client.getInfo();
    EditableNode infoNode = responseNode.getObject("info");
    assertThat(infoNode).isEqualTo(info);
    EditableNode meta = responseNode.getObject("meta");
    assertThat(meta.getAsLong("serverTime"))
            .isCloseTo(System.currentTimeMillis(), Offset.offset(400L));
    assertThat(meta.getAsString("effectiveApiVersion"))
            .isEqualTo(client.getApiVersion().getVersionString());
}