public void testParseCachingModel() {
String cronExpression = "* 0 * * *";
String groups = "pojos,web";
String refreshPeriod = "2";
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);