String location1 = getPartitionDir(db, table, "year=2012;month=12;dt=02;country=us");
String location2 = getPartitionDir(db, table, "year=2012;month=12;dt=03;country=us");
createPartitionForTestDelete(true, true);
URI hcatURI = getHCatURI(db, table, "year=2012;month=12;dt=02;country=us");
URIHandler uriHandler = uriService.getURIHandler(hcatURI);
assertTrue(uriHandler.exists(hcatURI, conf, getTestUser()));
LauncherURIHandlerFactory uriHandlerFactory = new LauncherURIHandlerFactory(uriService.getLauncherConfig());
LauncherURIHandler handler = uriHandlerFactory.getURIHandler(hcatURI);
handler.delete(hcatURI, conf);
assertFalse(getFileSystem().exists(new Path(location1)));
assertTrue(getFileSystem().exists(new Path(location2)));