public void verify() {
   if (transport.getVehicle() == null) {
     throw new TestErrorException("Transport.getVehicle() was null.");
   }
   if (transport.getVehicle().getTransientValue() == null) {
     throw new TestErrorException("TransientValue should not be null.");
   }
 }
  public void test() {
    transport = Transport.example6();
    UnitOfWork uow = getSession().acquireUnitOfWork();
    uow.registerObject(transport);
    uow.commit();

    transportId = transport.getId();

    DatabaseSession session = (DatabaseSession) getSession();
    ExpressionBuilder exp = new ExpressionBuilder();
    Expression expression = exp.get("id").equal(transportId);
    transport = (Transport) session.readObject(Transport.class, expression);
  }