public void bigIntegerObjectShouldReturnBigIntegerByteBuffer() {
ExtensibleTypeInferringSerializer.addSerializer(BigInteger.class, BigIntegerSerializer.get());
BigInteger value = BigInteger.valueOf(0x0807060504030201L);
byte[] array = value.toByteArray();
ByteBuffer expectedBuffer = ByteBuffer.wrap(array);
ByteBuffer buffer = extendedTypeInferringSerializer.toByteBuffer(value);
assertEquals(expectedBuffer, buffer);