@Test
public void testOptionalWithDefault() throws B2JsonException {

    {
        OptionalWithDefaultHolder expected = new OptionalWithDefaultHolder(0, 5, "hello");
        OptionalWithDefaultHolder actual = b2Json.fromJson("{}", OptionalWithDefaultHolder.class);
        assertEquals(expected, actual);
    }
    {
        OptionalWithDefaultHolder expected = new OptionalWithDefaultHolder(2, 3, "4");
        OptionalWithDefaultHolder actual = b2Json.fromJson("{\"a\": 2, \"b\": 3, \"c\": \"4\"}", OptionalWithDefaultHolder.class);
        assertEquals(expected, actual);
    }
}