    @Test
    public void testDateMatcherWithNegativeOffSet() {

        GenerateProcessor generateProcessor = new GenerateProcessor();
        Properties properties = new Properties();
        String dateFormat = "yyyy-MM-dd";
        int offSet = -25;
        String text = String.format("generate_date(%s;%d)", dateFormat, offSet);
        String reg = "[0-9]{4}-[0-9]{2}-[0-9]{2}";
        String key = "date";
        properties.setProperty(key, text);
        Pattern pattern = Pattern.compile(reg);
        String actual = generateProcessor.process(properties).getProperty(key);
        Assert.assertTrue(pattern.matcher(actual).matches());
        Assert.assertNotEquals(actual, text);
        Assert.assertEquals(actual, GenerationUtil.generateTime(dateFormat, offSet, Calendar.DAY_OF_YEAR));
    }