A useful testing technique to find deadlocks related to invokeAndWait