assertEquals(size(nics), 1);
assertEquals(get(nics, 0).getId(), publicIpInfrastructure.getId());
}
public void testAttachPublicIp() {
VirtualMachineTask task = env.virtualMachine.setNics(Lists.<Ip<?, ?>> newArrayList(publicIpCloud));
assertNull(task);
Iterable<Ip<?, ?>> nics = env.virtualMachine.listAttachedNics();
assertEquals(size(nics), 1);
assertEquals(get(nics, 0).getId(), publicIpCloud.getId());