public void test_should_store_transaction_in_the_database() {
   Transaction t = new Transaction();
   t.fromAccountId = 1;
   t.fromAmount = 1000;
   t.categoryId = 5;
   t.accuracy = 6.0f;
   t.latitude = -11.0;
   t.isCCardPayment = 1;
   t.note = "My note";
   t.status = TransactionStatus.RS;
   long id = db.saveOrUpdate(t);
   assertTrue(id > 0);
   Transaction restored = db.load(Transaction.class, id);
   assertEquals(t.fromAccountId, restored.fromAccountId);
   assertEquals(t.fromAmount, restored.fromAmount);
   assertEquals(t.categoryId, restored.categoryId);
   assertEquals(t.note, restored.note);
   assertEquals(t.status, restored.status);
   assertEquals(t.accuracy, restored.accuracy);
   assertEquals(t.latitude, restored.latitude);
   assertEquals(t.isCCardPayment, restored.isCCardPayment);
 }