System.currentTimeMillis resolution is so bad that sometimes two consecutive calls will return the same value, which caused sporadic failure in TestLockManagerBean