### Question:
ParseCounter { public int getSum(File file) { try { SAXParserFactory factory = SAXParserFactory.newInstance(); SAXParser parser = factory.newSAXParser(); parser.parse(file, new Parser()); } catch (SAXException | IOException | ParserConfigurationException e) { e.printStackTrace(); } LOGGER.info("this.counter"); return this.counter; }  int getSum(File file);  }### Answer:
@Test public void getSum() { ParseCounter testCounter = new ParseCounter(); int result = testCounter.getSum( new File(getClass().getClassLoader().getResource("ParseCounterTestSource.xml").getFile()) ); assertThat(result, is(28)); }