public void testNestedProperties() throws Exception {
List list = sqlMap.queryForList("getFish", null);
assertEquals(1, list.size());
Category cat = (Category) list.get(0);
assertEquals("FISH", cat.getCategoryId());
assertEquals("Fish", cat.getName());
assertNotNull("Expected product list.", cat.getProductList());
assertEquals(4, cat.getProductList().size());
Product product = (Product) cat.getProductList().get(0);
assertEquals(2, product.getItemList().size());
}