XenHypervisor implements HypervisorHost { protected String getUsername(Map<String, String> params) { return params.get("username"); }  @Override void shutdownHost(HostVO hostVo); @Override boolean supportsHypervisor(HypervisorType hypervisorType);  }
@Test public void getUsernameTest() { HostVO hostVo = setHostVoWithDetails(); String result = xenHypervisor.getUsername(hostVo.getDetails()); Assert.assertEquals("name".toString(), result.toString()); }