NeutronSubnetIpAllocationPool implements Serializable { static String bigIntegerToIp(BigInteger ipv4BigInteger) { try { return Inet6Address.getByAddress(ipv4BigInteger.toByteArray()).getHostAddress(); } catch (UnknownHostException e) { LOG.error("bigIntegerToIp", e); return "ERROR"; } } 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 bigIntegerToIpTest() { BigInteger start = new BigInteger("42550872755692912415807417417958686721"); Assert.assertEquals("longToIp Test 1: convert of 42550872755692912415807417417958686721 failed", "2003:0:0:0:0:0:0:1", NeutronSubnetIpAllocationPool.bigIntegerToIp(start)); }