@Test
public void scheduleRestartForVmsOnHost() {

  Mockito.when(hostVO.getType()).thenReturn(Host.Type.Routing);
  Mockito.when(hostVO.getHypervisorType()).thenReturn(HypervisorType.KVM);
  Mockito.when(_instanceDao.listByHostId(42l)).thenReturn(Arrays.asList(Mockito.mock(VMInstanceVO.class)));
  Mockito.when(_podDao.findById(Mockito.anyLong())).thenReturn(Mockito.mock(HostPodVO.class));
  Mockito.when(_dcDao.findById(Mockito.anyLong())).thenReturn(Mockito.mock(DataCenterVO.class));
  highAvailabilityManager.scheduleRestartForVmsOnHost(hostVO, true);
}