@Test
public void testIdMapperStore() throws UnsupportedOperationException,
IOException {
BlobStoreConnection connnection = blobStore.openConnection(null, null);
Blob blob = null;
try {
blob = connnection.getBlob(new URI(
"info:fedora/bhle:10706-a000test/OLEF"), null);
} catch (UnsupportedIdException e) {
e.printStackTrace();
} catch (UnsupportedOperationException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (URISyntaxException e) {
e.printStackTrace();
}
OutputStream out = null;
try {
out = blob.openOutputStream(-1, true);
} catch (DuplicateBlobException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
try {
out.write("SOMETHING ID!".getBytes());
out.close();
} catch (IOException e) {
e.printStackTrace();
}
try {
blob = connnection.getBlob(new URI(
"info:fedora/bhle:10706-a000test/OLEF"), null);
Assert.assertTrue(blob.exists());
blob.delete();
Assert.assertFalse(blob.exists());
connnection.close();
} catch (URISyntaxException e) {
e.printStackTrace();
}
}