InitDeploy extends MetadataAPIBase { @Override public InitDeployInfo execute(String[] params) { try { InitDeployInfo initDeployInfo = new InitDeployInfo(); CommandLine commandLine = getCommandLine(params, PARAMS_STRUCTURE); String deployId = commandLine.getOptionValue("deployment-id"); LOGGER.debug("deploymentId is " + deployId); initDeployInfo.setDeploymentId(Integer.parseInt(deployId)); deployDAO.initDeploy(Long.valueOf(deployId)); return initDeployInfo; } catch (Exception e) { LOGGER.error("Error occurred", e); throw new MetadataException(e); } } InitDeploy(); @Override InitDeployInfo execute(String[] params);  }
@Ignore @Test public void testExecute() throws Exception { String[] args = {"--deployment-id", "4"}; InitDeploy id = new InitDeploy(); id.execute(args); LOGGER.debug("executed!"); }