@Test
public void configureBasicVmProfileTest() {

    StringBuilder buf = new StringBuilder();
    VirtualMachine vm = Mockito.mock(VirtualMachine.class);
    Mockito.when(vm.getHostName()).thenReturn("vmHostName");
    DataCenter dc = Mockito.mock(DataCenter.class);
    Mockito.when(dc.getId()).thenReturn(0l);
    Pod pod = Mockito.mock(Pod.class);
    Mockito.when(pod.getId()).thenReturn(0l);
    DeployDestination dest = Mockito.mock(DeployDestination.class);
    Mockito.when(dest.getDataCenter()).thenReturn(dc);
    Mockito.when(dest.getPod()).thenReturn(pod);
    VirtualMachineProfile profile = Mockito.mock(VirtualMachineProfile.class);
    Mockito.when(profile.getBootArgsBuilder()).thenReturn(buf);
    Mockito.when(profile.getVirtualMachine()).thenReturn(vm);
    Mockito.when(profile.getId()).thenReturn(123l);
    StringBuilder result = spy.configureBasicVmProfile(profile, dest);
    Assert.assertEquals(" template=domP host=localhost name=vmHostName zone=0 pod=0 guid=autonomiccsSystemVm.123 autonomiccsSystemVm_vm=123", result.toString());
    InOrder inOrder = Mockito.inOrder(profile, vm, dest, dc, pod);
    inOrder.verify(profile).getBootArgsBuilder();
    inOrder.verify(profile).getVirtualMachine();
    inOrder.verify(vm).getHostName();
    inOrder.verify(dest).getDataCenter();
    inOrder.verify(dc).getId();
    inOrder.verify(dest).getPod();
    inOrder.verify(pod).getId();
    inOrder.verify(profile, Mockito.times(2)).getId();
}