}
} else {
incrementFailureCount();
print("XX unexpected RemoteException: ");
}
e.printStackTrace();
} catch (SecurityException e) {
if (expectation == SECURITY_EXCEPTION) {
print("-- security exception as expected: ");
} else {
incrementFailureCount();