### Question:
JshiftServiceHub { public BuildService getBuildService() { return (BuildService) this.services.get(BuildService.class).get(); } private  JshiftServiceHub(); BuildService getBuildService(); ArtifactResolverService getArtifactResolverService();  }### Answer:
@Test public void testObtainBuildService() { JshiftServiceHub hub = new JshiftServiceHub.Builder() .clusterAccess(clusterAccess) .log(logger) .platformMode(RuntimeMode.kubernetes) .dockerServiceHub(dockerServiceHub) .buildServiceConfig(buildServiceConfig) .build(); BuildService buildService = hub.getBuildService(); assertNotNull(buildService); assertTrue(buildService instanceof DockerBuildService); }
@Test public void testObtainOpenshiftBuildService() { JshiftServiceHub hub = new JshiftServiceHub.Builder() .clusterAccess(clusterAccess) .log(logger) .platformMode(RuntimeMode.openshift) .dockerServiceHub(dockerServiceHub) .buildServiceConfig(buildServiceConfig) .build(); BuildService buildService = hub.getBuildService(); assertNotNull(buildService); assertTrue(buildService instanceof OpenshiftBuildService); }