@Override
    public void close() {
        closeUninterruptibly();
    }
@Test
    void testClose() {
        ResourceGuard resourceGuard = new ResourceGuard();
        assertThat(resourceGuard.isClosed()).isFalse();
        resourceGuard.close();
        assertThat(resourceGuard.isClosed()).isTrue();
        assertThatThrownBy(resourceGuard::acquireResource).isInstanceOf(IOException.class);
    }