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