specify(out.toByteArray(), does.containExactly(new byte[] { 19, 0, 0, 0, 16, 48, 0, 1, 0, 0, 0, 16, 49, 0, 2, 0, 0, 0, 0 }));
}
public void bsonCanBeDecodedIntoListOfIntegers() {
ByteArrayInputStream in = new ByteArrayInputStream(new byte[] { 18, 0, 0, 0, 16, 48, 0, 1, 0, 0, 0, 16, 49, 0, 2, 0, 0, 0, 0 });
List<?> ret = context.decode(new MapBSONCoders(), new LittleEndianDataReader(in));
specify(ret, containsExactly(1, 2));
}