XPathResourceBuilderMojo extends AbstractMojo { protected String extractFileContent(final String filename) throws IOException { final StringBuilder sb = new StringBuilder(); String temp = ""; final BufferedReader bufferedReader = new BufferedReader( new FileReader(filename)); try { while (temp != null) { temp = bufferedReader.readLine(); if (temp != null) { sb.append(temp); } } return sb.toString(); } finally { bufferedReader.close(); } }  void execute();  }
@Test public void extractFileContent() throws Exception { }