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