private ValidatorDao<String> dao;
@BeforeMethod
public void init() {
initMocks(this);
validator = new UniqueValidator();
ApplicationContext context = mock(ApplicationContext.class);
when(context.getBean(ValidatorDao.class)).thenReturn(dao);
validator.setApplicationContext(context);
}