@Test
public void closeQuietly_anObjectImplementingAutoCloseable_close() throws Exception {

    // given
    AutoCloseable closeable = mock(AutoCloseable.class);
    Object anyObject = closeable;
    // when
    AutoCloseables.closeQuietly(anyObject);
    // then
    verify(closeable).close();
}