@Test
public void testDomSource() throws Exception {

	DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactoryUtils.newInstance();
	documentBuilderFactory.setNamespaceAware(true);
	DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
	Document document = documentBuilder.parse(resource.getFile());
	long result = LastModifiedHelper.getLastModified(new DOMSource(document));
	Assert.assertEquals("Invalid last modified", expected, result);
}