### Question:
XmiReader { protected static final void closeQuiet(final Closeable closeable) { IOUtils.closeQuietly(closeable); }  static final Model readModel(final File file); static final Model readModel(final InputStream stream); static final Model readModel(final String fileName);  }### Answer:
@Test public void testCloseQuiet() throws IOException { Closeable mockCloseable = mock(Closeable.class); final StringBuffer stringBuffer = new StringBuffer(); PrintStream stdErr = System.err; PrintStream myErr = new PrintStream(new OutputStream() { @Override public void write(int b) throws IOException { stringBuffer.append((char) b); } }); System.setErr(myErr); XmiReader.closeQuiet(mockCloseable); assertTrue(stringBuffer.toString().equals("")); System.setErr(stdErr); }