507508509510511512513514515
ExecResponse exec = ssh.exec("df"); assertTrue(exec.getOutput().contains("Filesystem"), "The output should've contained filesystem information, but it didn't. Output: " + exec); } finally { if (ssh != null) ssh.disconnect(); } } }