try {
ctx.getProperties().setProperty(PigConfiguration.PIG_WHITELIST, "load, store, filter");
ctx.getProperties().setProperty(PigConfiguration.PIG_BLACKLIST, "filter");
LogicalPlan plan = generateLogicalPlan("foo", "bar", ctx.getDfs());
LogicalRelationalNodeValidator executor = new BlackAndWhitelistValidator(ctx, plan);
executor.validate();
fail();
} catch (Exception e) {
Util.assertExceptionAndMessage(IllegalStateException.class, e,
"Conflict between whitelist and blacklist. 'filter' appears in both.");
}