@Test(expected=PersistenceException.class)
public void testUnorderedGetPersonWithHandler() {
SqlSession sqlSession = sqlSessionFactory.openSession();
try {
sqlSession.select("getPersonsWithItemsOrdered", new ResultHandler() {
public void handleResult(ResultContext context) {
Person person = (Person) context.getResultObject();
if ("grandma".equals(person.getName())) {
Assert.assertEquals(2, person.getItems().size());
}