@Test
public void testDeserializeNullRequired() throws B2JsonException {

    String json = "{ \"a\" : null }";
    thrown.expect(B2JsonException.class);
    thrown.expectMessage("required field a cannot be null");
    b2Json.fromJson(json, RequiredObject.class);
}