TransactionException extends StorageException { public boolean isNotFound() { return isNotFound(getCause()); } TransactionException(DatastoreException cause); @Override synchronized DatastoreException getCause(); boolean isConflict(); boolean isAlreadyExists(); boolean isNotFound();  }
@Test public void isNotFound() { assertThat(transactionException(1, "", "NOT_FOUND").isNotFound(), is(true)); assertThat(transactionException(1, "no entity to update", "").isNotFound(), is(true)); assertThat(transactionException(1, "", "").isNotFound(), is(false)); }