IOExceptionFactory extends AbstractExceptionFactory<IOException> { @Override public boolean correctHeuristic(IOException exception, Phase phase) { 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 correctHeuristic() { assertFalse(this.factory.correctHeuristic(new IOException(), Phase.COMMIT)); assertFalse(this.factory.correctHeuristic(new IOException(), Phase.FORGET)); assertFalse(this.factory.correctHeuristic(new IOException(), Phase.PREPARE)); assertFalse(this.factory.correctHeuristic(new IOException(), Phase.ROLLBACK)); }