### Question:
PsmConfigReader { public static final PsmConfig<Type> readConfig(final String fileName, final ModelIndex mapper) throws FileNotFoundException { final InputStream istream = new BufferedInputStream(new FileInputStream(fileName)); try { return readConfig(istream, mapper); } finally { closeQuiet(istream); } }  static final PsmConfig<Type> readConfig(final String fileName, final ModelIndex mapper); static final PsmConfig<Type> readConfig(final File file, final ModelIndex mapper); static final PsmConfig<Type> readConfig(final InputStream stream, final ModelIndex mapper);  }### Answer:
@Test public void testReadConfig() throws FileNotFoundException { final File docFile = new File(docUri); final PsmConfig config = PsmConfigReader.readConfig(docFile, mockIndex); asserts(config); }
@Test public void testReadConfigString() throws FileNotFoundException { final File docFile = new File(docUri); final String docLoc = docFile.getAbsolutePath(); final PsmConfig config = PsmConfigReader.readConfig(docLoc, mockIndex); asserts(config); }
@Test public void testReadConfigStream() throws FileNotFoundException { final InputStream inputStream = getClass().getResourceAsStream("/test_documents.xml"); final PsmConfig config = PsmConfigReader.readConfig(inputStream, mockIndex); asserts(config); }