Element ntlmssp_auth = new ClientNtlmsspPubKeyAuth("ntlmssp_auth", ntlmState, sslState, "192.168.0.101", "workgroup", "apollo3", "Administrator",
"R2Preview!");
Element sink = new MockSink("sink", ByteBuffer.convertByteArraysToByteBuffers(clientNegotiatePacket, clientAuthPacket), (Dumper)ntlmssp_auth);
Element mainSink = new MockSink("mainSink", ByteBuffer.convertByteArraysToByteBuffers(new byte[] {1, 2, 3}));
Pipeline pipeline = new PipelineImpl("test");
pipeline.add(source, ntlmssp_negotiate, ntlmssp_challenge, ntlmssp_auth, sink, mainSink);
pipeline.link("source", "ntlmssp_negotiate", "ntlmssp_challenge", "ntlmssp_auth", "mainSink");
pipeline.link("ntlmssp_negotiate >" + OTOUT, "ntlmssp_negotiate< sink");
pipeline.link("ntlmssp_challenge >" + OTOUT, "ntlmssp_challenge< sink");
pipeline.link("ntlmssp_auth >" + OTOUT, "ntlmssp_auth< sink");
pipeline.runMainLoop("source", STDOUT, false, false);
}