K8sContainerResolverBuilder { public K8sContainerResolver build() { if (container == null || pluginEndpoints == null) { throw new IllegalStateException(); } List<ChePluginEndpoint> containerEndpoints = getContainerEndpoints(container.getPorts(), pluginEndpoints); return new K8sContainerResolver(imagePullPolicy, container, containerEndpoints); }  K8sContainerResolverBuilder setContainer(CheContainer container); K8sContainerResolverBuilder setPluginEndpoints(List<ChePluginEndpoint> pluginEndpoints); K8sContainerResolverBuilder setImagePullPolicy(String imagePullPolicy); K8sContainerResolver build();  }
@Test(dataProvider = "allFieldsSetProvider", expectedExceptions = IllegalStateException.class) public void shouldCheckThatAllFieldsAreSet(K8sContainerResolverBuilder builder) { builder.build(); }