@Test
public void allocateIdShouldThrowCheckedException() throws IOException {

  when(datastore.allocateId(incompleteKey)).thenThrow(CAUSE);
  exception.expect(DatastoreIOException.class);
  exception.expectCause(is(CAUSE));
  sut.allocateId(incompleteKey);
}