VirtualMachineService { public void remove(long id) { vmInstanceDao.remove(id); }  VMInstanceVO searchVmInstanceById(Long vmId); void update(long id, VMInstanceVO vmInstance); void remove(long id);  }
@Test public void removeTest() { Mockito.doReturn(true).when(vmInstanceDao).remove(Mockito.anyLong()); spy.remove(0l); Mockito.verify(vmInstanceDao).remove(Mockito.anyLong()); }