List<ExternalIp> ips = externalNetwork.listIps(IpOptions.builder().limit(5).build());
assertEquals(ips.size(), 5);
}
public void testListUnusedIps() {
ExternalIpsDto ipsDto = env.context.getApiContext().getApi().getInfrastructureApi()
.listExternalIps(externalNetwork.unwrap(), IpOptions.builder().limit(1).build());
int totalIps = ipsDto.getTotalSize();
List<ExternalIp> ips = externalNetwork.listUnusedIps();
assertEquals(ips.size(), totalIps);
}