NeutronSubnetIpAllocationPool implements Serializable { static BigInteger convertV6(String inputString) { if (inputString == null) { return BigInteger.ZERO; } return new BigInteger(((Inet6Address) InetAddresses.forString(inputString)).getAddress()); } NeutronSubnetIpAllocationPool();  NeutronSubnetIpAllocationPool(String lowAddress, String highAddress); String getPoolStart(); void setPoolStart(String poolStart); String getPoolEnd(); void setPoolEnd(String poolEnd); boolean contains(String inputString); boolean containsV6(String inputString); static String join(String[] strings, String separator); List<NeutronSubnetIpAllocationPool> splitPool(String ipAddress); @Override String toString(); List<NeutronSubnetIpAllocationPool> splitPoolV6(String ipAddress);  }
@Test public void convertV6Test() { boolean result = BigInteger.ZERO.equals(NeutronSubnetIpAllocationPool.convertV6(null)); Assert.assertTrue("Convert V6 Test 1: null Argument failed", result); result = new BigInteger("42550872755692912415807417417958686721") .equals(NeutronSubnetIpAllocationPool.convertV6("2003:0:0:0:0:0:0:1")); Assert.assertTrue("Convert V6 Test 2: 2003:0:0:0:0:0:0:1 Argument failed", result); }