@Test
public void testRequiredFieldMissingInVersion() throws B2JsonException {

    final String json = "{}";
    final B2JsonOptions options = B2JsonOptions.builder().setVersion(5).build();
    thrown.expectMessage("required field x is missing");
    b2Json.fromJson(json, VersionedContainer.class, options);
}