Implement AbstractBaseDaoTest class and refactor corresponding subclasses.