@Test
public void closeShouldIgnoreExceptions() throws IOException {

    final Closeable closeable = mock(Closeable.class);
    doThrow(new IOException("Throw on close")).when(closeable).close();
    ioTools.close(closeable);
    verify(closeable).close();
}