@Test
public void testNonExistentResource() throws Exception {

	Resource resource = new NonExistentResource();
	try {
		XmlValidatorFactory.createValidator(resource, XmlValidatorFactory.SCHEMA_W3C_XML);
		Assert.fail("IllegalArgumentException expected");
	} catch (IllegalArgumentException ex) {
		// expected
	}
}