XMLFileImport implements XMLFile { @Async public void process(final InputStream inputStream) throws IOException, SAXException { DigesterLoader digesterLoader = DigesterLoader.newLoader(getAbstractRulesModule()); Digester digester = digesterLoader.newDigester(); digester.push(this); digester.parse(inputStream); }  @Async void process(final InputStream inputStream); @Async void process(final File file); void saveRelease(final Object obj);  }
@Test @Ignore public void process() throws Exception { final ClassLoader classLoader = getClass().getClassLoader(); final File file = new File(classLoader.getResource("xml/release.xml").getFile()); xmlFile.process(file); final List<Release> releases = releaseRepository.findAll(); Assert.assertNotNull(releases); final Release release = releaseRepository.findById("xmlimport-123"); Assert.assertNotNull(release); Assert.assertEquals("check field", release.getLanguage(), "en"); }