Source:
public void updateTimeAfterEndTime_Feed() throws ParseException, JAXBException, IOException, OozieClientException, InterruptedException { String startTime = InstanceUtil.getTimeWrtSystemTime(-15); String endTime = InstanceUtil.getTimeWrtSystemTime(60); String feed = processBundle.getDataSets().get(0); feed = InstanceUtil.setFeedCluster(feed, XmlUtil.createValidity("2012-10-01T12:00Z", "2010-01-01T00:00Z"), XmlUtil.createRtention("days(100000)", ActionType.DELETE), null, ClusterType.SOURCE, null, null); feed = InstanceUtil.setFeedCluster(feed, XmlUtil.createValidity(startTime, endTime), XmlUtil.createRtention("days(100000)", ActionType.DELETE), Util.readClusterName(processBundle.getClusters().get(0)), ClusterType.SOURCE, null, inputPath + "/replication" + dateTemplate); ServiceResponse r = prism.getClusterHelper().submitEntity(Util.URLS.SUBMIT_URL, processBundle.getClusters().get(0)); AssertUtil.assertSucceeded(r); r = prism.getFeedHelper().submitAndSchedule(Util.URLS .SUBMIT_AND_SCHEDULE_URL, feed); AssertUtil.assertSucceeded(r); InstanceUtil.waitTillInstancesAreCreated(cluster_1,feed,0,10); String oldBundleID = InstanceUtil .getLatestBundleID(cluster_1, Util.readEntityName(feed), ENTITY_TYPE.FEED); String updateTime = InstanceUtil.addMinsToTime(endTime, 60); String updatedFeed = Util.setFeedProperty(feed, "someProp", "someVal"); System.out.println("Original Feed : "+feed); System.out.println("Updated Feed :"+ updatedFeed); System.out.println("Update Time : " + updateTime); r = prism.getFeedHelper().update(feed, updatedFeed, updateTime); AssertUtil.assertSucceeded(r); InstanceUtil.waitTillInstancesAreCreated(cluster_1, feed, 1, 10); Util.verifyNewBundleCreation(cluster_1,oldBundleID,null, feed,true,true); }

Target:
public void updateTimeAfterEndTime_Feed() throws ParseException, JAXBException, IOException, OozieClientException, InterruptedException, URISyntaxException, AuthenticationException { String startTime = InstanceUtil.getTimeWrtSystemTime(-15); String endTime = InstanceUtil.getTimeWrtSystemTime(60); String feed = processBundle.getDataSets().get(0); feed = InstanceUtil.setFeedCluster(feed, XmlUtil.createValidity("2012-10-01T12:00Z", "2010-01-01T00:00Z"), XmlUtil.createRtention("days(100000)", ActionType.DELETE), null, ClusterType.SOURCE, null, null); feed = InstanceUtil.setFeedCluster(feed, XmlUtil.createValidity(startTime, endTime), XmlUtil.createRtention("days(100000)", ActionType.DELETE), Util.readClusterName(processBundle.getClusters().get(0)), ClusterType.SOURCE, null, inputPath + "/replication" + dateTemplate); ServiceResponse r = prism.getClusterHelper().submitEntity(Util.URLS.SUBMIT_URL, processBundle.getClusters().get(0)); AssertUtil.assertSucceeded(r); r = prism.getFeedHelper().submitAndSchedule(Util.URLS .SUBMIT_AND_SCHEDULE_URL, feed); AssertUtil.assertSucceeded(r); InstanceUtil.waitTillInstancesAreCreated(cluster_1,feed,0,10); String oldBundleID = InstanceUtil .getLatestBundleID(cluster_1, Util.readEntityName(feed), ENTITY_TYPE.FEED); String updateTime = InstanceUtil.addMinsToTime(endTime, 60); String updatedFeed = Util.setFeedProperty(feed, "someProp", "someVal"); System.out.println("Original Feed : "+feed); System.out.println("Updated Feed :"+ updatedFeed); System.out.println("Update Time : " + updateTime); r = prism.getFeedHelper().update(feed, updatedFeed, updateTime); AssertUtil.assertSucceeded(r); InstanceUtil.waitTillInstancesAreCreated(cluster_1, feed, 1, 10); Util.verifyNewBundleCreation(cluster_1,oldBundleID,null, feed,true,false); }