}
@Test
public void testAddPartitionIfNotExistsWithLocation() throws Exception {
ASTNode ast = parse("alter table parted add if not exists partition (day='Monday')" +
" location 'file:/'");
LOG.info("AST: " + ast.toStringTree());
AccessURI partitionLocation = HiveAuthzBindingHook.extractPartition(ast);
Assert.assertNotNull("Query with part location must return location",
partitionLocation);
Assert.assertEquals("file:///", partitionLocation.getName());
}