// Tests -----------------------------------------
public void testCheckBookBalance() throws Exception
{
InitialContext ctx = getInitialContext();
CheckBookMgrHome home = (CheckBookMgrHome) ctx.lookup("cmp2/perf/CheckBookMgrHome");
CheckBookMgr mgr = home.create("Acct123456789USD", 10000);
long start = System.currentTimeMillis();
int entryCount = mgr.getEntryCount();
double balance = mgr.getBalance();
long end = System.currentTimeMillis();
double expectedBalance = 10000 - entryCount;
assertTrue(expectedBalance+" == "+balance, balance == expectedBalance);
mgr.remove();
getLog().info("getBalance() time: "+(end - start));
}