public void shouldPipeLazyDbObject() throws Exception {
DBEncoder encoder = BsonDBEncoder.FACTORY.create();
BasicOutputBuffer buffer = new BasicOutputBuffer();
encoder.writeObject(buffer, new LazyDBObject(new byte[]{5, 0, 0, 0, 0}, null));
assertThat(buffer.toByteArray()).isEqualTo(new byte[]{5, 0, 0, 0, 0});
}