LoopbackBlobStore implements BlobStore { @Override public String writeBlob(InputStream in) { throw new UnsupportedOperationException(); }  @Override String writeBlob(InputStream in); @Override String writeBlob(InputStream in, BlobOptions options); @Override int readBlob(String blobId, long pos, byte[] buff, int off,
            int length); @Override long getBlobLength(String blobId); @Override InputStream getInputStream(String blobId); @Override String getBlobId(@NotNull String reference); @Override String getReference(@NotNull String blobId); @Override void close();  }
@Test(expected = UnsupportedOperationException.class) public void writingBinariesIsNotSupported() throws IOException { given: { final BlobStore blobStore = new LoopbackBlobStore(); when: { final String test = "Test"; blobStore.writeBlob(adaptToUtf8InputStream(test)); } } }
@Test(expected = UnsupportedOperationException.class) public void writingBinariesWithBlobOptsIsNotSupported() throws IOException { given: { final BlobStore blobStore = new LoopbackBlobStore(); final BlobOptions blobOptions = new BlobOptions(); when: { blobStore.writeBlob(adaptToUtf8InputStream("Test"), blobOptions); } } }