@Test
    void verifyChannel() throws Throwable {
        val resource = new TemporaryFileSystemResource(File.createTempFile("temp2", ".txt"));
        try (val channel = resource.readableChannel()) {
            assertTrue(channel.isOpen());
            val c = channel.read(ByteBuffer.allocate(1));
            assertEquals(-1, c);
        }
        assertFalse(resource.exists());
    }
This is {@link TemporaryFileSystemResourceTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-util-api/src/test/java/org/apereo/cas/util/io/TemporaryFileSystemResourceTests.java