@Override
    public boolean isQualified(final SQLStatementContext sqlStatementContext, final ReadwriteSplittingDataSourceGroupRule rule, final HintValueContext hintValueContext) {
        return connectionContext.getTransactionContext().isInTransaction();
    }
@Test
    void assertWriteRouteTransaction() {
        ConnectionContext connectionContext = mock(ConnectionContext.class);
        TransactionConnectionContext transactionConnectionContext = mock(TransactionConnectionContext.class);
        when(connectionContext.getTransactionContext()).thenReturn(transactionConnectionContext);
        when(connectionContext.getTransactionContext().isInTransaction()).thenReturn(Boolean.TRUE);
        assertTrue(new QualifiedReadwriteSplittingTransactionalDataSourceRouter(connectionContext).isQualified(null, null, hintValueContext));
        when(connectionContext.getTransactionContext().isInTransaction()).thenReturn(Boolean.FALSE);
        assertFalse(new QualifiedReadwriteSplittingTransactionalDataSourceRouter(connectionContext).isQualified(null, null, hintValueContext));
    }