XenHypervisor implements HypervisorHost { protected Queue<String> getPassword(Map<String, String> params) { Queue<String> password = new LinkedList<>(); password.add(params.get("password")); return password; }  @Override void shutdownHost(HostVO hostVo); @Override boolean supportsHypervisor(HypervisorType hypervisorType);  }
@Test public void getPassswordTest() { HostVO hostVo = setHostVoWithDetails(); Queue<String> result = xenHypervisor.getPassword(hostVo.getDetails()); Assert.assertEquals("pass".toString(), result.poll().toString()); }