@Test
public void testValidate() throws Exception {

	XsdValidator.getCachedSchemas().clear();
	Source testXml = new StreamSource(new ClassPathResource("xsd/test.xml")
			.getInputStream());
	validator.validate(testXml, SCHEMA_RESOURCE);
	Assert.assertTrue(XsdValidator.getCachedSchemas().containsKey(
			SCHEMA_RESOURCE));
}