DemoDataParser parser = new DemoDataParser(LoggerFactory.getLogger(DemoDataParser.class));
DemoDataParser.DemoData demoData = parser.parse(DemoDataParser.class.getResource("demodata.xml"));
Blog blog = demoData.getBlog();
assertEquals(blog.getName(), "Tapestry 5 Blog");
assertEquals(blog.getDescription(), "Thoughts on coding, technology and occasional stuff");
List<Article> articles = demoData.getArticles();
assertEquals(articles.size(), 2);