import org.junit.Test;
import static org.junit.Assert.*;
public final class Protocol_Test {
@Test public void test() throws Exception {
IBridge iBridge = new TestBridge();
PipedInputStream inA = new PipedInputStream();
PipedOutputStream outA = new PipedOutputStream(inA);
PipedInputStream inB = new PipedInputStream();
PipedOutputStream outB = new PipedOutputStream(inB);
Endpoint iSender = new Endpoint(iBridge, inA, outB);
Endpoint iReceiver = new Endpoint(iBridge, inB, outA);
TestObject testObject = new TestObject();
String oId = (String)iBridge.mapInterfaceTo(testObject, new Type(XInterface.class));
testCall(iSender, iReceiver, oId);
testCallWithInParameter(iSender, iReceiver, oId);
testCallWithOutParameter(iSender, iReceiver, oId);
testCallWithInOutParameter(iSender, iReceiver, oId);