@Override
		public InputBlockStream createInputBlockStream(LocalBufferFile bf) throws IOException {
			return new InputBlockStream() {

				@Override
				public boolean includesHeaderBlock() {
					return true;
				}

				@Override
				public void close() throws IOException {
					// ignore
				}

				@Override
				public int getBlockSize() {
					return bf.getBufferSize();
				}

				@Override
				public BufferFileBlock readBlock() throws IOException {
					throw new IOException("forced block read failure");
				}

				@Override
				public int getBlockCount() {
					return bf.getIndexCount();
				}
			};
		}
This test is intended to verify that an IOException thrown during the streaming creation
of a new versioned file will properly cleanup and not leave an invalid database item
Ghidra/Framework/FileSystem/src/test/java/ghidra/framework/store/db/VersionFailureRecoveryTest.java