### Question:
JsonHelperJackson2 implements JsonHelper { @Override public Object parse(String string) { return parse(string, ObjectNode.class); } JsonHelperJackson2(ObjectMapper objectMapper);  JsonHelperJackson2(); @SuppressWarnings("squid:CallToDeprecatedMethod") static ObjectMapper configureMapper(ObjectMapper objectMapper); @Override Object parse(String string); @Override List<T> parseList(final String string, final Class<T> clazz); @Override T parse(final String string, final Class<T> clazz); @Override String print(final Object object); @Override String prettyPrint(Object object); @Override T convert(Object object, Class<T> instanceClass, String... path); @Override Integer getInteger(Object object, String... path); @Override String getString(Object object, String... path); @Override Long getLong(Object object, String... path); @Override @SuppressWarnings("squid:S2447") Boolean getBoolean(Object object, String... path); @Override BigInteger getBigInteger(Object object, String... path); @Override boolean contains(Object object, String... path); @Override Object getObject(Object object, String... path);  }### Answer:
@Test public void shouldFailWhenParsingInvalid() { Assertions.assertEquals( "JsonEOFException: Unexpected end-of-input: expected close marker for Object (start marker at [Source: (String)\"{\"; line: 1, column: 1])\n" + " at [Source: (String)\"{\"; line: 1, column: 2]. Json payload: {", Assertions.assertThrows( IllegalArgumentException.class, () -> jsonHelper.parse("{", Car.class)) .getMessage()); }
@Test public void shouldParseNull() { Assertions.assertNull(jsonHelper.parse(null)); Assertions.assertNull(jsonHelper.parse(null, Car.class)); }