public void loadNonExistingDocument() throws Exception {
try (ODatabaseDocumentTx db = createDatabase()) {
ORID rid = new ORecordId("#1:2"); // NOTE: #1:1 will return a record, #1:2 will return null
log("RID: {}", rid);
ORecordMetadata md = db.getRecordMetadata(rid);
log("Metadata: {}", md);
assertThat(md, nullValue());
ORecordInternal record = db.load(rid);
log("Record: {}", record);