/** Test the Test-Service for valid rest mapping. Important for development. */ @Test public void testDebugMapping() { Test cl = new Test(); String XML_LOCATION = "./restMapping.xml"; String xml = cl.getRESTMapping(); try { RESTMapper.writeFile(XML_LOCATION, xml); } catch (IOException e) { e.printStackTrace(); } XMLCheck validator = new XMLCheck(); ValidationResult result = validator.validate(xml); if (!result.isValid()) { fail(); } }