XAExceptionFactory extends AbstractExceptionFactory<XAException> { @Override public ExceptionType getType() { return ExceptionType.XA; } XAExceptionFactory(); @Override XAException createException(String message); @Override boolean equals(XAException exception1, XAException exception2); @Override boolean indicatesFailure(XAException exception, Dialect dialect); @Override ExceptionType getType(); @Override boolean correctHeuristic(XAException exception, Phase phase);  }
@Test public void getType() { ExceptionType result = this.factory.getType(); assertSame(ExceptionType.XA, result); }