@Test
public void testSerializeIncludeFieldInVersion() throws B2JsonException {

    final B2JsonOptions options = B2JsonOptions.builder().setVersion(5).build();
    assertEquals(
            "{\n" +
            "  \"x\": 3\n" +
            "}",
            b2Json.toJson(new VersionedContainer(3, 5), options)
    );
}