System.out.println("Got doOp for op: " + op.toString() + ", numOps: " + numOps + ", indices: " + indicesToString(indices) + ", expect: " + expectedResult + " flags: " + OpFlags.description(flags)); boolean exceptionOccurred = false; boolean breakLoop = false; if (!operationOmitted && !op.isUnregisterInterest()) { fail("Expected an exception while performing operation op =" + op + "flags = " + OpFlags.description(flags)); && (ex.getCause() instanceof NotAuthorizedException)) { System.out.println("doOp: Got expected NotAuthorizedException when doing operation [" + op + "] with flags " + OpFlags.description(flags) + ": " + ex.getCause()); continue; } else if (expectedResult == OTHER_EXCEPTION) { } else { fail("doOp: Got unexpected exception when doing operation. Policy = " + policy + " flags = " + OpFlags.description(flags), ex); + OpFlags.description(flags));