    @Test
    public void testSimpleCommand() throws IOException, InterruptedException {

        // build the system command we want to run
        List<String> commands = new ArrayList<String>();
        commands.add("/bin/sh");
        commands.add("-c");
        commands.add("ls -l /var/tmp | wc -l");

        // execute the command
        Executor executor = SingletonServiceFactory.getBean(Executor.class);
        int result = executor.execute(commands, new File(System.getProperty("user.home")));
    }