public void test_updateTrader() {
   Trader t = null;
   try {
     t = dbdao.getTrader(NAME);
     t.setPosition(Position.LONG);
     dbdao.updateTrader(t);
     t = dbdao.getTrader(NAME);
     assertEquals(Position.LONG, t.getPosition());
   } catch (Exception e) {
     e.printStackTrace();
     assertTrue(false);
   }
 }
 public void test_getTrader() {
   Trader t = null;
   try {
     t = dbdao.getTrader(NAME);
     assertEquals(NAME, t.getName());
     assertEquals(PAPER.getSymbol(), t.getSymbol());
     assertEquals(POSITION, t.getPosition());
     assertEquals(SIGGEN.getClass(), t.getSignalGenerator().getClass());
   } catch (Exception e) {
     e.printStackTrace();
     assertTrue(false);
   }
 }