JDBC.assertSingleValueResultSet(
select.executeQuery(), "456");
// Now we've got the read lock. Wait until all threads
// have it before attempting to get the write lock.
readLockBarrier.await();
// All threads have the read lock. Now all should try
// to update the row and thereby create a deadlock.
assertUpdateCount(update, 1);