AccountFactory acctFact = new AccountFactory();
assertEquals("account type", Account.CHECKING, acctFact.getAccountType("CH"));
assertEquals("account type", Account.SAVINGS, acctFact.getAccountType("SA"));
try {
acctFact.getAccountType("bogus");
fail("Expected DataSourceException");
} catch (DataSourceException expected) {
}