assertThat(findWithState(BlobState.MARKED_FOR_DELETION), emptyIterable());
}
@Test
public void basic() throws Exception {
BlobMetadata md = new BlobMetadata(BlobState.CREATING, ImmutableMap.of("foo", "bar"));
log(md);
// add a record
log("add");
BlobId id = underTest.add(md);
log(id);
dumpStates();
// update a record
log("update");
md.setBlobState(BlobState.ALIVE);
underTest.update(id, md);
dumpStates();
// fetch a record
log("fetch");
BlobMetadata md2 = underTest.get(id);
log(md2);
// delete a record
log("delete");
underTest.delete(id);