### Question:
Gas { public long toLong() { return value; } private  Gas(long value); static Gas valueOf(UInt256 value); static Gas valueOf(long value); static Gas valueOf(BigInteger value); Wei priceFor(Wei gasPrice); Gas add(Gas other); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); long toLong(); Bytes toBytes(); Bytes toMinimalBytes(); int compareTo(long other);  }### Answer:
@Test void testToLong() { Gas gas = Gas.valueOf(32L); assertEquals(32L, gas.toLong()); }