DataBridgeManifestReader { public M readJsonManifest(File jsonManifestFile) throws IOException, IllegalArgumentException { HerdFileUtils.verifyFileExistsAndReadable(jsonManifestFile); BufferedInputStream buffer = new BufferedInputStream(new FileInputStream(jsonManifestFile)); BufferedReader reader = new BufferedReader(new InputStreamReader(buffer, Charsets.UTF_8)); ObjectMapper objectMapper = new ObjectMapper(); objectMapper.setVisibility(PropertyAccessor.FIELD, Visibility.ANY); objectMapper.setVisibility(PropertyAccessor.GETTER, Visibility.NONE); objectMapper.setVisibility(PropertyAccessor.SETTER, Visibility.NONE); M manifest = getManifestFromReader(reader, objectMapper); validateManifest(manifest); return manifest; }  M readJsonManifest(File jsonManifestFile);  }
@Test public void testReadJsonManifest() throws Exception { DataBridgeBaseManifestDto dataBridgeBaseManifestDto = getDataBridgeBaseManifestDto(); File file = createTempFile(new ObjectMapper().writeValueAsString(dataBridgeBaseManifestDto)); try { dataBridgeManifestReader.readJsonManifest(file); } catch (Exception e) { Assert.fail("unexpected exception was thrown " + e); } }