@Test
public void updateTest() {

    VMInstanceVO vm = Mockito.mock(VMInstanceVO.class);
    Mockito.doReturn(true).when(vmInstanceDao).update(Mockito.anyLong(), Mockito.any(VMInstanceVO.class));
    spy.update(0l, vm);
    Mockito.verify(vmInstanceDao).update(Mockito.anyLong(), Mockito.any(VMInstanceVO.class));
}