@Test
public void testOptionalsPresentInUrl() throws IOException, B2JsonException {

    Map<String, String> parameterMap = makeParameterMap(
            "v_boolean", "true",
            "v_byte", "5",
            "v_char", "6",
            "v_color", "BLUE",
            "v_double", "7.0",
            "v_float", "8.0",
            "v_int", "9",
            "v_long", "10",
            "v_string", "abc"
    );
    AllOptionalTypes obj = b2Json.fromUrlParameterMap(parameterMap, AllOptionalTypes.class);
    assertTrue(obj.v_boolean);
    assertEquals(5, obj.v_byte);
    assertEquals(6, obj.v_char);
    assertEquals(Color.BLUE, obj.v_color);
    assertEquals(7.0, obj.v_double, 0.0001);
    assertEquals(8.0, obj.v_float, 0.0001);
    assertEquals(9, obj.v_int);
    assertEquals(10, obj.v_long);
    assertEquals("abc", obj.v_string);
}