initSqlMap("com/ibatis/sqlmap/maps/SqlMapConfig.xml", null);
initScript("com/scripts/account-init.sql");
}
public void testInsertAndSelectDirectToFields() throws SQLException {
FieldAccount account = newFieldAccount6();
sqlMap.insert("insertAccountFromFields", account);
account = (FieldAccount) sqlMap.queryForObject("getAccountToFields", new Integer(6));
assertFieldAccount6(account);
assertFieldAccount6(account.account());
}