@Test
public void closeQuietly_autoCloseableThrows_doNotPropagate() throws Exception {

    // given
    AutoCloseable closeable = mock(AutoCloseable.class);
    doThrow(IllegalStateException.class).when(closeable).close();
    // when
    catchException(() -> AutoCloseables.closeQuietly(closeable));
    // then
    assertThat("Expected no exception to be thrown", caughtException(), nullValue());
}