@Test
public void executeCommand() {

    AppInfo app = new AppInfo();
    if (SystemUtil.getOsInfo().isWindows()) {
        app.setProcessable(new ProcessClosure());
        String cmd = "ipconfig";
        String result = app.executeCommand(cmd);
        assertTrue(ObjectUtil.isNotEmpty(result));
        return;
    }
    app.setProcessable(new ShellClosure());
    String cmd = "/sbin/ifconfig";
    String result = app.executeCommand(cmd);
    assertTrue(ObjectUtil.isNotEmpty(result));
}