public void testValidate(){
Errors errors = createMock(Errors.class);
PriceListValidator priceListValidator = new PriceListValidator();
expect(errors.getFieldValue("date")).andReturn("35/15/70");
expect(errors.getFieldValue("price")).andReturn("noPrice");
expectLastCall().anyTimes();
errors.reject("errors.dateAsStirng.noCorrectFormat","errors.dateAsStirng.noCorrectFormat");
errors.reject("errors.price.notCorrect","errors.price.notCorrect");
errors.reject("errors.dateAsStirng.noCorrectFormat","errors.dateAsStirng.noCorrectFormat");
replay(errors);
priceListValidator.validate(priceListDTO, errors);
verify(errors);
}