TermStep extends MetadataAPIBase { @Override public TermStepInfo execute(String[] params) { try { TermStepInfo termStepInfo = new TermStepInfo(); CommandLine commandLine = getCommandLine(params, PARAMS_STRUCTURE); String subPid = commandLine.getOptionValue("sub-process-id"); LOGGER.debug("subPid is " + subPid); termStepInfo.setSubProcessId(Integer.parseInt(subPid)); stepDAO.termStep(Integer.parseInt(subPid)); return termStepInfo; } catch (Exception e) { LOGGER.error("Error occurred", e); throw new MetadataException(e); } } TermStep(); @Override TermStepInfo execute(String[] params);  }
@Ignore @Test public void testExecute() throws Exception { String[] args = {"--sub-process-id", "96"}; TermStep bs = new TermStep(); bs.execute(args); LOGGER.debug("executed!"); }