### Question:
CoordPushDependencyCheckXCommand extends CoordinatorXCommand<Void> { private String resolveCoordConfiguration() throws CommandException { try { Configuration actionConf = new XConfiguration(new StringReader(coordAction.getRunConf())); StringBuilder actionXml = new StringBuilder(coordAction.getActionXml()); String newActionXml = CoordActionInputCheckXCommand.resolveCoordConfiguration(actionXml, actionConf, actionId, coordAction.getPullInputDependencies(), coordAction .getPushInputDependencies()); actionXml.replace(0, actionXml.length(), newActionXml); return actionXml.toString(); } catch (ElException e) { coordAction.setStatus(CoordinatorAction.Status.FAILED); updateCoordAction(coordAction, true); throw new CommandException(ErrorCode.E1021, e.getMessage(), e); } catch (Exception e) { throw new CommandException(ErrorCode.E1021, e.getMessage(), e); } } CoordPushDependencyCheckXCommand(String actionId);  CoordPushDependencyCheckXCommand(String actionId, boolean registerForNotification);  CoordPushDependencyCheckXCommand(String actionId, boolean registerForNotification,
            boolean removeAvailDependencies); protected  CoordPushDependencyCheckXCommand(String actionName, String actionId); long getCoordPushCheckRequeueInterval(); static void unregisterMissingDependencies(List<String> missingDeps, String actionId); @Override String getEntityKey(); @Override String getKey(); static final String CONF_COORD_PUSH_CHECK_REQUEUE_INTERVAL; }### Answer:
@Test public void testResolveCoordConfiguration() throws Exception { String db = "default"; String table = "tablename"; String newHCatDependency1 = "hcat: String newHCatDependency2 = "hcat: String newHCatDependency = newHCatDependency1 + CoordELFunctions.INSTANCE_SEPARATOR + newHCatDependency2; populateTable(db, table); CoordinatorJobBean job = addRecordToCoordJobTableForWaiting("coord-job-for-action-input-check.xml", CoordinatorJob.Status.RUNNING, false, true); CoordinatorActionBean action = addRecordToCoordActionTableForWaiting(job.getId(), 1, CoordinatorAction.Status.WAITING, "coord-action-for-action-push-check.xml", null, newHCatDependency, "Z"); String actionId = action.getId(); checkCoordAction(actionId, newHCatDependency, CoordinatorAction.Status.WAITING); new CoordPushDependencyCheckXCommand(actionId).call(); CoordinatorActionBean caBean = checkCoordAction(actionId, "", CoordinatorAction.Status.READY); Element eAction = XmlUtils.parseXml(caBean.getActionXml()); Element configElem = eAction.getChild("action", eAction.getNamespace()) .getChild("workflow", eAction.getNamespace()).getChild("configuration", eAction.getNamespace()); List<?> elementList = configElem.getChildren("property", configElem.getNamespace()); Element e1 = (Element) elementList.get(0); Element e2 = (Element) elementList.get(1); assertEquals( "hcat: "hcat: e1.getChild("value", e1.getNamespace()).getValue()); assertEquals("hcat: }