@Test public void testContainerDescriptionServices() throws Throwable { verifyService( FactoryService.create(ContainerDescriptionService.class), ContainerDescription.class, (prefix, index) -> createContainerDescription(), (prefix, serviceDocument) -> { ContainerDescription contDesc = (ContainerDescription) serviceDocument; HealthConfig healthConfig = contDesc.healthConfig; assertEquals(healthConfig.protocol, RequestProtocol.HTTP); assertEquals(healthConfig.healthyThreshold, Integer.valueOf(2)); assertEquals(healthConfig.unhealthyThreshold, Integer.valueOf(2)); assertEquals(healthConfig.httpMethod, Action.GET); assertEquals(healthConfig.httpVersion, HttpVersion.HTTP_v1_1); assertEquals(healthConfig.urlPath, TestHealthService.SELF_LINK); assertEquals(healthConfig.timeoutMillis, Integer.valueOf(2000)); }); }