Status.failed("registerContentProvider(.., .., false)");
} catch (DuplicateProviderException e) {
log.println("DuplicateProviderException thrown - OK");
}
XContentProvider result;
log.println("registering the second provider in the replace mode");
try {
result = oObj.registerContentProvider(contentProvider, myScheme, true);
} catch (DuplicateProviderException e) {
log.println("Unexpected exception thrown " + e.getMessage());
e.printStackTrace(log);
throw new StatusException("Unexpected exception ", e);
}
// check the result is the first provider
tRes.tested("registerContentProvider()",
result.equals(firstContentProvider));
}