ClusterService { public ClusterVO findById(long clusterId) { return clusterDao.findById(clusterId); }  List<ClusterVO> listAllClustersFromPod(long podId); ClusterVO findById(long clusterId); List<ClusterVO> listAllClustersOnZone(Long zoneId); List<ClusterVO> listAllClusters();  }
@Test public void findByIdTest() { ClusterVO cluster = new ClusterVO(); Mockito.doReturn(cluster).when(clusterDao).findById(Mockito.anyLong()); ClusterVO result = spy.findById(0l); Mockito.verify(clusterDao).findById(Mockito.anyLong()); Assert.assertEquals(cluster, result); }