### Question:
JsonDataHandlerModelReader { public DataHandlerModel readDataHandlerModel(InputStream src) { try { return objectMapper.readValue(src, DataHandlerModel.class); } catch (final IOException e) { throw new JsonDataHandlerModelReaderException(e); } }  DataHandlerModel readDataHandlerModel(InputStream src);  }### Answer:
@Test public void readTestDefaultJsonMapping() { final DataHandlerModel dataHandlerModel = modelReader.readDataHandlerModel(ResourceUtils.getInputStream(TEST_DEFAULT_JSON_MAPPING_1)); assertThat(dataHandlerModel, notNullValue()); assertThat(dataHandlerModel.getRequest().getMatches(), equalToIgnoringCase("0200\\d{10}4F2F0F90000030")); assertThat(dataHandlerModel.getResponse().getData(), equalToIgnoringCase("ad122e1b75356c6fdf3e9c3076a80da6")); }
@Test public void readTestListJsonMapping() { final DataHandlerModel dataHandlerModel = modelReader.readDataHandlerModel(ResourceUtils.getInputStream(TEST_LIST_JSON_MAPPING_1)); assertThat(dataHandlerModel, notNullValue()); assertThat(dataHandlerModel.getRequest().getMatches(), equalToIgnoringCase("0200\\d{10}4F2F0F90000030")); assertThat(dataHandlerModel.getResponse().getData(), equalToIgnoringCase("ad122e1b75356c6fdf3e9c3076a80da6")); }
@Test public void readTestMultiRequestJsonMapping() { final DataHandlerModel dataHandlerModel = modelReader.readDataHandlerModel(ResourceUtils.getInputStream(TEST_MULTIREQUEST_JSON_MAPPING_1)); assertThat(dataHandlerModel, notNullValue()); assertThat(dataHandlerModel.getRequestList().stream().map(DataHandlerModel.Request::getMatches).collect(Collectors.toList()), contains("0200\\d{10}4F2F0F90000030", "0201\\d{10}4F2F0F90000030")); assertThat(dataHandlerModel.getResponse().getData(), equalToIgnoringCase("ad122e1b75356c6fdf3e9c3076a80da611")); }