@Test
public void testReadEncoderOutput() throws Exception {
ByteArrayOutputStream byteOutputStream = new ByteArrayOutputStream();
Encoder encoder = new ColumnEncoder(byteOutputStream);
encoder.writeFloat(1.1f);
encoder.flush();
InputStream in = new ByteArrayInputStream(byteOutputStream.toByteArray());
Decoder decoder = new ColumnDecoder(in);
float readFloat = decoder.readFloat();
assertEquals(1.1f, readFloat, 0.0001);