@Override
    public boolean isFrozen() {
        return writer.isFrozen();
    }
@Test
    void testCloseWithoutFreeze() {
        NoopRawSnapshotWriter rawWriter = new NoopRawSnapshotWriter();

        AtomicBoolean called = new AtomicBoolean(false);
        Consumer<OffsetAndEpoch> consumer = offset -> called.set(true);

        try (RawSnapshotWriter writer = new NotifyingRawSnapshotWriter(rawWriter, consumer)) {
        }

        assertFalse(called.get());
        assertFalse(rawWriter.isFrozen());
        assertTrue(rawWriter.closed);
    }