TlsAttackerSocket { public void sendRawBytes(byte[] bytes) throws IOException { state.getTlsContext().getTransportHandler().sendData(bytes); } TlsAttackerSocket(State state); void sendRawBytes(byte[] bytes); byte[] receiveRawBytes(); void send(String string); void send(byte[] bytes); byte[] receiveBytes(); String receiveString(); void send(ProtocolMessage message); void close();  }
@Test public void testSendRawBytes() throws Exception { socket.sendRawBytes(new byte[] { 1, 2, 3 }); assertArrayEquals(new byte[] { 1, 2, 3 }, transportHandler.getSendByte()); }