@Test
public void testBlacklistCmdWithPigServer() throws Exception {
try {
ctx.getProperties().setProperty(PigConfiguration.PIG_BLACKLIST, "ls");
PigServer pigServer = new PigServer(ctx);
pigServer.listPaths("foo");
fail();
} catch (Exception e) {
Util.assertExceptionAndMessage(FrontendException.class, e,
"LS command is not permitted. ");
}