LoopbackBlobStore implements BlobStore { @Override public String getBlobId(@NotNull String reference) { return checkNotNull(reference); }  @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 @Parameters(method = "blobIds") public void getBlobIdShouldReturnTheSameValuePassedExceptOfNull( final String blobId) { given: { final BlobStore blobStore = new LoopbackBlobStore(); expect: { assertEquals(blobId, blobStore.getBlobId(blobId)); } } }
@SuppressWarnings("ConstantConditions") @Test(expected = NullPointerException.class) public void getBlobIdShouldThrowAnExceptionWhenNullIsPassed() { given: { final BlobStore blobStore = new LoopbackBlobStore(); when: { blobStore.getBlobId(null); } } }