StartHostSystemVmService { public Long getStartHostServiceVmIdFromPod(Long podId) { return autonomiccsSystemVmJdbcDao.getStartHostServiceVmIdFromPod(podId, SystemVmType.ClusterManagerStartHostService); }  boolean isStartHostSystemVmDeployedOnPod(Long podId); Long getStartHostServiceVmIdFromPod(Long podId); boolean isStartHostServiceVmRunningOnPod(Long podId); boolean isStartHostServiceVmReadyToStartHostOnPod(Long podId);  }
@Test public void getStartHostServiceVmIdFromPodTest() { Mockito.doReturn(0l).when(autonomiccsSystemVmJdbcDao).getStartHostServiceVmIdFromPod(Mockito.anyLong(), Mockito.eq(SystemVmType.ClusterManagerStartHostService)); Long result = spy.getStartHostServiceVmIdFromPod(0l); Mockito.verify(autonomiccsSystemVmJdbcDao).getStartHostServiceVmIdFromPod(Mockito.anyLong(), Mockito.eq(SystemVmType.ClusterManagerStartHostService)); Assert.assertEquals(new Long(0l), result); }