@Test
public void testFieldPresentButNotInVersion() throws B2JsonException {

    final String json = "{ \"x\": 5 }";
    final B2JsonOptions options = B2JsonOptions.builder().setVersion(1).build();
    thrown.expectMessage("field x is not in version 1");
    b2Json.fromJson(json, VersionedContainer.class, options);
}