// Respond to challenge with AUTH_OK
new byte[] {0, 0, 0, RfbConstants.VNC_AUTH_OK});
}
};
Element mainSink = new FakeSink("mainSink");
final Vnc_3_3_Authentication auth = new Vnc_3_3_Authentication("auth", password);
Element initSink = new MockSink("initSink") {
{
// Expect encoded password
bufs = new ByteBuffer[] {auth.encodePassword(new ByteBuffer(new byte[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}), password)};