Element element = new DomElementStub("caching");
element.setAttribute("cronExpression", cronExpression);
element.setAttribute("groups", groups);
element.setAttribute("refreshPeriod", refreshPeriod);
CachingModel actual = parser.parseCachingModel(element);
CachingModel expected = new OsCacheCachingModel(groups, Integer
.parseInt(refreshPeriod), cronExpression);
assertEquals(expected, actual);
}