### Question:
ChromeDevToolsUtils { public static void closeQuietly(Closeable closeable) { if (closeable != null) { try { closeable.close(); } catch (IOException e) { } } }  static void closeQuietly(Closeable closeable); static void waitForEvent(Function<EventHandler<T>, EventListener> eventConsumer);  }### Answer:
@Test public void testCloseQuietly() throws IOException { Closeable closeable = mock(Closeable.class); Closeable closeableWithException = mock(Closeable.class); closeable.close(); closeableWithException.close(); expectLastCall().andThrow(new IOException()); replay(closeable, closeableWithException); ChromeDevToolsUtils.closeQuietly(null); ChromeDevToolsUtils.closeQuietly(closeable); ChromeDevToolsUtils.closeQuietly(closeableWithException); verify(closeable, closeableWithException); }