@Test
public void afterPropertiesSetTest() throws Exception {

    Mockito.doNothing().when(virtualMachineManager).registerGuru(VirtualMachine.Type.Instance, spy);
    spy.afterPropertiesSet();
    Mockito.verify(virtualMachineManager).registerGuru(VirtualMachine.Type.Instance, spy);
}