PodService { public HostPodVO findPodById(Long podId) { return hostPodDao.findById(podId); }  List<HostPodVO> getAllPodsEnabledFromZone(long zoneId); HostPodVO findPodById(Long podId); boolean isThereAnyHostOnPodDeactivatedByOurManager(long id);  }
@Test public void findPodByIdTest() { HostPodVO host = Mockito.mock(HostPodVO.class); Mockito.doReturn(host).when(hostPodDao).findById(Mockito.anyLong()); HostPodVO result = spy.findPodById(0l); Mockito.verify(hostPodDao).findById(Mockito.anyLong()); Assert.assertEquals(host, result); }