IOExceptionFactory extends AbstractExceptionFactory<IOException> { @Override public boolean indicatesFailure(IOException exception, Dialect dialect) { return false; } IOExceptionFactory(); @Override IOException createException(String message); @Override boolean indicatesFailure(IOException exception, Dialect dialect); @Override ExceptionType getType(); @Override boolean correctHeuristic(IOException exception, Phase phase);  }
@Test public void indicatesFailure() { Dialect dialect = mock(Dialect.class); assertFalse(this.factory.indicatesFailure(new IOException(), dialect)); Mockito.verifyNoMoreInteractions(dialect); }