public void handleAutoCommit() {
        if (!connectionSession.isAutoCommit() && !connectionSession.getTransactionStatus().isInTransaction()) {
            BackendTransactionManager transactionManager = new BackendTransactionManager(this);
            transactionManager.begin();
        }
    }
@Test
    void assertHandleAutoCommit() {
        when(connectionSession.isAutoCommit()).thenReturn(false);
        connectionSession.getTransactionStatus().setInTransaction(false);
        try (MockedConstruction<BackendTransactionManager> mockedConstruction = mockConstruction(BackendTransactionManager.class)) {
            databaseConnectionManager.handleAutoCommit();
            verify(mockedConstruction.constructed().get(0)).begin();
        }
    }