@danberindei you are correct. However, this test is invoking TM.commit() that will perform the prepare phase + commit phase

Also the test tries to block the commit in the begin of the interceptor chain (that never happens because the commit is not sent). The tests fails when the prepare is faster than "main" thread and it commits and releases the locks before the assertions.

If the comment is not clear I can try to improve it.