FixedPointType extends NumericType { static BigInteger convert(BigInteger m, BigInteger n) { return convert(DEFAULT_BIT_LENGTH, DEFAULT_BIT_LENGTH, m, n); } FixedPointType(String typePrefix, int mBitSize, int nBitSize, BigInteger value);   }
@Test public void testConvert() { assertThat( FixedPointType.convert(BigInteger.valueOf(0x2), BigInteger.valueOf(0x2)), is(new BigInteger("220000000000000000000000000000000", 16)) ); assertThat( FixedPointType.convert(BigInteger.valueOf(0x8), BigInteger.valueOf(0x8)), is(new BigInteger("880000000000000000000000000000000", 16)) ); assertThat( FixedPointType.convert(BigInteger.valueOf(0xAAFF), BigInteger.valueOf(0x1111)), is(new BigInteger("AAFF11110000000000000000000000000000", 16)) ); }