@Test
void testConvertJsonToMapWithInvalidJsonInputStream() {

    String invalidJson = "{]";
    InputStream invalidJsonInputStream = IOUtils.toInputStream(invalidJson, Charset.defaultCharset());
    ParsingException resultException = Assertions.assertThrows(ParsingException.class,
                                                               () -> JsonUtil.convertJsonToMap(invalidJsonInputStream));
    String errorMessage = resultException.getCause()
                                         .getMessage();
    ParsingException expectedException = new ParsingException(resultException.getCause(), Messages.CANNOT_CONVERT_JSON_STREAM_TO_MAP,
                                                              errorMessage, invalidJsonInputStream);
    Assertions.assertEquals(expectedException.getMessage(), resultException.getMessage());
}