@Test
public void shouldCorrectlyWriteSimpleBsonObject() {

    BasicDocument top = new BasicDocument();
    top.put("firstName", "Jack");
    top.put("lastName", "Riley");
    top.put("age", 31);
    String actual = writer.write(top);
    String expected = "{ \"firstName\" : \"Jack\" , \"lastName\" : \"Riley\" , \"age\" : 31 }";
    assertSame(expected, actual);
}