.fixedIps(ImmutableSet.copyOf(getFixedAddresses(ipv4SubnetId))).build()).getId();
String ipv6PortId = portApi.create(Port.createOptions(networkId).name("JClouds-Live-IPv6-Port")
.fixedIps(ImmutableSet.copyOf(getFixedAddresses(ipv6SubnetId))).build()).getId();
/* List and get test */
Port portList = api.getPortApi(region).list().concat().toSet().iterator().next();
assertNotNull(portList);
Port portGet = api.getPortApi(region).get(portList.getId());
assertEquals(portList, portGet);
/****/
assertNotNull(ipv4PortId);
assertNotNull(ipv6PortId);
Port ipv4Port = portApi.get(ipv4PortId);
assertNotNull(ipv4Port);
assertEquals(ipv4Port.getId(), ipv4PortId);
assertEquals(ipv4Port.getName(), "JClouds-Live-IPv4-Port");
Port ipv6Port = portApi.get(ipv6PortId);
assertNotNull(ipv6Port);
assertEquals(ipv6Port.getId(), ipv6PortId);
assertEquals(ipv6Port.getName(), "JClouds-Live-IPv6-Port");
assertNotNull(portApi.update(ipv4PortId, Port.updateOptions().name("Updated").build()));
Port updatedIpv4Port = portApi.get(ipv4PortId);
assertEquals(updatedIpv4Port.getName(), "Updated");
assertTrue(portApi.delete(ipv4PortId));
assertTrue(portApi.delete(ipv6PortId));
assertTrue(subnetApi.delete(ipv4SubnetId));
assertTrue(subnetApi.delete(ipv6SubnetId));