### Question:
SQLTransactionExecutionHook implements SQLExecutionHook { @Override public void finishFailure(final Exception cause) { if (null != sqlTransaction) { sqlTransaction.setExecuteStatus(ExecuteStatus.FAILURE); } }  @Override void start(final RouteUnit routeUnit, final DataSourceMetaData dataSourceMetaData, final boolean isTrunkThread, final Map<String, Object> shardingExecuteDataMap); @Override void finishSuccess(); @Override void finishFailure(final Exception cause);  }### Answer:
@Test public void assertFinishFailure() { setBranchTransaction(); sqlExecutionHook.finishFailure(mock(Exception.class)); verify(sqlTransaction).setExecuteStatus(ExecuteStatus.FAILURE); }