public void testEqualsConcurrency_concurrentAccessFails() throws Exception {
final PrintStream temp = System.err;
try {
ByteArrayOutputStream sysErr = new ByteArrayOutputStream();
System.setErr(new PrintStream(sysErr));
TestUtils.doSimultaneouslyAndRepetitively(new TwoObjectAssertion() {
public void assertOn(String msg, Object o0, Object o1) {
assertEquals(msg, o0, o1);
}
}, IllegalMonitorStateException.class,
new Runnable() {