.getSqlSession()).getSqlSessionFactory());
}
@Test
public void testWithBothFactoryAndTemplate() {
SqlSessionTemplate sessionTemplate = new SqlSessionTemplate(sqlSessionFactory);
sqlSessionDaoSupport.setSqlSessionTemplate(sessionTemplate);
sqlSessionDaoSupport.setSqlSessionFactory(sqlSessionFactory);
sqlSessionDaoSupport.afterPropertiesSet();
assertEquals("should ignore the Factory", sessionTemplate, sqlSessionDaoSupport.getSqlSession());