}
public void listWithIntegersCanBeEncodedIntoBson() {
ByteArrayOutputStream out = new ByteArrayOutputStream();
List<Integer> input = Arrays.asList(1, 2);
LittleEndianDataWriter leWriter = new LittleEndianDataWriter(out);
context.encode(new MapBSONCoders(), input, leWriter);
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 }));
}