@Test public void testIncrementException() throws Exception { final TestExtractor extractor = new TestExtractor.Builder().build(); extractor.incrementExceptions(); extractor.incrementExceptions(); assertThat(extractor.getExceptionCount()).isEqualTo(2); }