AutonomiccsSystemVmDeploymentService implements InitializingBean { protected NicProfile createDefaultNic() { NicProfile defaultNic = new NicProfile(); defaultNic.setDefaultNic(true); defaultNic.setDeviceId(2); return defaultNic; }  HostVO searchForRandomHostInCloudToDeployAutonomiccsSystemVm(); HostVO searchForRandomHostInPodToDeployAutonomiccsSystemVm(HostPodVO pod); HostVO searchForAnotherRandomHostToStartSystemVm(VMInstanceVO vmInstance); AutonomiccsSystemVm deploySystemVmWithJava(Long hostId, SystemVmType systemVmType); @Override void afterPropertiesSet();  }
@Test public void createDefaultNicTest() { NicProfile result = spy.createDefaultNic(); Assert.assertEquals(true, result.isDefaultNic()); Assert.assertEquals(new Integer(2), result.getDeviceId()); }