private void test() {
TestDao testDao = (TestDao)context.getBean("testDao");
List tests = testDao.getAll();
for (Iterator i = tests.iterator(); i.hasNext();) {
Test test = (Test)i.next();
System.out.println(test);
}
Test test1, test2;
test1 = testDao.getById(1);
test2 = testDao.getById(1);
test1.setName("new Name");
test2.setName("other name");
testDao.save(test1);
testDao.save(test2);
}