### Question:
GenericExecService { public static Service createGenericExecService() { return new ServiceDescription("exec", "Command execution service") .addServiceMethod(runMethod()) .executorService(defaultExecutor) .createService(); }  static ServiceMethodDescription runMethod(); static Service createGenericExecService();  }### Answer:
@Test public void runCommand1() throws Exception { Map<String, Object> params = new HashMap<>(); params.put("command", ValueFactory.newVString("echo This is a test!", ValueFactory.alarmNone(), ValueFactory.timeNow())); Map<String, Object> result = GenericExecService.createGenericExecService().getServiceMethods().get("run").executeSync(params); VString output = (VString) result.get("output"); assertThat(output.getValue(), equalTo("This is a test!\n")); }