HostService { public void loadHostDetails(HostVO host) { hostDao.loadDetails(host); }  boolean isHostUpAndEnabled(long hostId); boolean isHostInMaintenanceError(long hostId); boolean isHostInPreparedForMaintenance(long hostId); @Transactional(readOnly = false) void markHostAsShutdownByAdministrationAgent(long id); void loadHostDetails(HostVO host); List<HypervisorType> getAllHypervisorsTypeInCloud(); HostVO findHostById(Long hostId); List<HostVO> listAllHostsInCluster(Cluster cluster); List<VMInstanceVO> listAllVmsFromHost(long hostId); @Transactional(readOnly = false) void updateHostPrivaceMacAddress(HostVO hostVo, String privateMacAddress); boolean isHostDown(long id); boolean isThereAnyHostOnCloudDeactivatedByOurManager();  }
@Test public void loadHostDetailsTest() { HostVO host = Mockito.mock(HostVO.class); Mockito.doNothing().when(hostDao).loadDetails(Mockito.any(HostVO.class)); spy.loadHostDetails(host); Mockito.verify(hostDao).loadDetails(Mockito.any(HostVO.class)); }