@Test
public void testSendStopWithNullAnswer() throws Exception {

    VirtualMachineGuru guru = mock(VirtualMachineGuru.class);
    VirtualMachine vm = mock(VirtualMachine.class);
    VirtualMachineProfile profile = mock(VirtualMachineProfile.class);
    when(profile.getVirtualMachine()).thenReturn(vm);
    when(vm.getHostId()).thenReturn(1L);
    when(_agentMgr.send(anyLong(), (Command)any())).thenReturn(null);
    boolean actual = _vmMgr.sendStop(guru, profile, false, false);
    Assert.assertFalse(actual);
}