### Question:
B2IoUtils { public static void closeQuietly(Closeable closeable) { try { if (closeable != null) { closeable.close(); } } catch (IOException ioe) { } }  @SuppressWarnings("UnusedReturnValue") static long copy(InputStream in,
                            OutputStream out); static void closeQuietly(Closeable closeable); static void readToEnd(InputStream in);  }### Answer:
@Test public void testCloseQuietly_withoutException() { final InputStream thrower = new ByteArrayInputStream(makeBytes(100)); B2IoUtils.closeQuietly(thrower); }
@Test public void testCloseQuietly_withException() { final InputStream thrower = new InputStream() { @Override public int read() throws IOException { return 0; } @Override public void close() throws IOException { throw new IOException("test!"); } }; B2IoUtils.closeQuietly(thrower); }