private void assertPlanContains(MapReduceOper mro, String[] expectedFiles, int size) throws VisitorException {
List<String> cacheFiles = new ArrayList<String>();
List<String> shipFiles = new ArrayList<String>();
UdfCacheShipFilesVisitor mapUdfCacheFileVisitor = new UdfCacheShipFilesVisitor(mro.mapPlan);
mapUdfCacheFileVisitor.visit();
cacheFiles.addAll(mapUdfCacheFileVisitor.getCacheFiles());
shipFiles.addAll(mapUdfCacheFileVisitor.getShipFiles());
UdfCacheShipFilesVisitor reduceUdfCacheFileVisitor = new UdfCacheShipFilesVisitor(mro.reducePlan);
reduceUdfCacheFileVisitor.visit();