UInt32 implements UInt<UInt32> { @Override public long toLong() { return Integer.toUnsignedLong(value); } UInt32(int value); @Override UInt32 add(UInt32 other); @Override UInt32 multiply(UInt32 other); @Override UInt32 subtract(UInt32 other); @Override UInt32 negateUInt(); @Override boolean isZero(); @Override int getBitLength(); @Override byte[] toByteArray(); @Override BigInteger toBigInteger(); @Override long toLong(); @Override int toInt(); @Override String toString();  }
@Test public void toLong() { Assert.assertEquals(42, left.toLong()); Assert.assertEquals(123, right.toLong()); }