XenHypervisor implements HypervisorHost { @Override public boolean supportsHypervisor(HypervisorType hypervisorType) { return HypervisorType.XenServer.equals(hypervisorType); }  @Override void shutdownHost(HostVO hostVo); @Override boolean supportsHypervisor(HypervisorType hypervisorType);  }
@Test public void supportsHypervisorTest() { boolean result = xenHypervisor.supportsHypervisor(HypervisorType.XenServer); Assert.assertTrue(result); }