@Test
 public void testStartObject() throws Exception {
   JacksonParserWrapper parser = new JacksonParserWrapper(jsonFactory.createJsonParser("{}"));
   parser.startObject();
   try {
     parser.startObject();
     fail("Where is the Exception");
   } catch (JsonParseException e) {
     assertThat(e.getMessage())
         .startsWith("Invalid token. Expected <START_OBJECT> but got <END_OBJECT>");
   }
 }
  @Test
  public void testSimple() throws Exception {
    JacksonParserWrapper parser =
        new JacksonParserWrapper(
            jsonFactory.createJsonParser(getClass().getResource("simple.json")));
    parser.startObject();

    parser.nextFieldValue("street");
    assertThat(parser.getText()).isEqualTo("Schlossalle");

    parser.nextFieldValue("number");
    assertThat(parser.getIntValue()).isEqualTo(7);

    parser.endObject();
  }