@Test
public void testLocalForwardingNativeBigPayload() throws Exception {
ClientSession session = createNativeSession();
SshdSocketAddress local = new SshdSocketAddress("", getFreePort());
SshdSocketAddress remote = new SshdSocketAddress("localhost", echoPort);
SshdSocketAddress bound = session.startLocalPortForwarding(local, remote);
byte[] buf = new byte[1024];
Socket s = new Socket(bound.getHostName(), bound.getPort());
for (int i = 0; i < 1000; i++) {
s.getOutputStream().write("Hello".getBytes());
s.getOutputStream().flush();
int n = s.getInputStream().read(buf);
String res = new String(buf, 0, n);