SshValueFunctions { public static Function<SshPollValue, Integer> exitStatus() { return new ExitStatus(); }  static Function<SshPollValue, Integer> exitStatus(); static Function<SshPollValue, String> stdout(); static Function<SshPollValue, String> stderr(); static Function<SshPollValue, Boolean> exitStatusEquals(final int expected);  }
@Test public void testExitCode() throws Exception { assertEquals(SshValueFunctions.exitStatus().apply(val), (Integer)123); }