@Test(dependsOnMethods = "testReorderNics")
public void testDetachNics() {
List<Ip<?, ?>> nics = Lists.newArrayList(env.virtualMachine.listAttachedNics());
VirtualMachineTask task = env.virtualMachine.setNics(Lists.<Ip<?, ?>> newArrayList(nics.get(1), nics.get(2)));
assertNull(task);
nics = Lists.newArrayList(env.virtualMachine.listAttachedNics());
assertEquals(nics.size(), 2);
assertEquals(nics.get(0).getId(), privateIp.getId());