@Test public void testIsSchedulerHost() { final String alias = "alias"; ComputeService.ComputeState state = new ComputeService.ComputeState(); state.customProperties = new HashMap<>(); state.customProperties.put(ContainerHostService.CONTAINER_HOST_TYPE_PROP_NAME, ContainerHostType.KUBERNETES.name()); state.customProperties.put(ContainerHostUtil.PROPERTY_NAME_DRIVER, ContainerHostUtil.VMWARE_VIC_DRIVER2); boolean result = ContainerHostUtil.isSchedulerHost(state); assertTrue(result); // negative test state.customProperties = new HashMap<>(); result = ContainerHostUtil.isSchedulerHost(state); assertFalse(result); }