@Test
public void shouldDecodeLegacyDouble() {
byte[] bytes = LegacyTranscoder.encodeNum(Double.doubleToRawLongBits(Double.MAX_VALUE), 8);
ByteBuf content = Unpooled.buffer().writeBytes(bytes);
JsonDoubleDocument decoded = converter.decode("id", content, 0, 0, 7 << 8,
ResponseStatus.SUCCESS);
assertEquals(Double.MAX_VALUE, decoded.content(), 0);
}