@Test
public void testSerializeNullTopLevel() throws B2JsonException {

    thrown.expect(B2JsonException.class);
    thrown.expectMessage("top level object must not be null");
    b2Json.toJson(null);
}