@Test
public void testLockRetryPolicyNotRollbackOnConflict() throws Exception {

    boolean oldBranchRollbackFlag = (boolean) branchRollbackFlagField.get(null);
    branchRollbackFlagField.set(null, false);
    ConnectionProxy connectionProxy = new ConnectionProxy(dataSourceProxy, null);
    connectionProxy.bind(TEST_XID);
    Assertions.assertThrows(LockWaitTimeoutException.class, connectionProxy::commit);
    branchRollbackFlagField.set(null, oldBranchRollbackFlag);
}