### Question:
CorbaServerConduit implements Conduit { public final String getAddress() { return endpointInfo.getAddress(); } CorbaServerConduit(EndpointInfo ei,
                              EndpointReferenceType ref,
                              org.omg.CORBA.Object targetObj,
                              ORB o,
                              OrbConfig config,
                              CorbaTypeMap map); void prepare(Message message); void close(Message message); EndpointReferenceType getTarget(); void close(); void setMessageObserver(MessageObserver observer); MessageObserver getMessageObserver(); final EndpointReferenceType getTargetReference(EndpointReferenceType t); final String getAddress(); void buildRequestResult(CorbaMessage msg);  }### Answer:
@Test public void testGetAddress() throws Exception { setupServiceInfo("http: "/wsdl_corbabinding/simpleIdl.wsdl", "SimpleCORBAService", "SimpleCORBAPort"); CorbaDestination destination = new CorbaDestination(endpointInfo, orbConfig); endpointInfo.setAddress("corbaloc::localhost:40000/Simple"); CorbaServerConduit conduit = new CorbaServerConduit(endpointInfo, destination.getAddress(), targetObject, null, orbConfig, corbaTypeMap); String address = conduit.getAddress(); assertNotNull("address should not be null", address); assertEquals(address, "corbaloc::localhost:40000/Simple"); }
@Test public void testGetAddress() throws Exception { setupServiceInfo("http: "/wsdl_corbabinding/simpleIdl.wsdl", "SimpleCORBAService", "SimpleCORBAPort"); CorbaDestination destination = new CorbaDestination(endpointInfo, orbConfig); endpointInfo.setAddress("corbaloc::localhost:40000/Simple"); CorbaServerConduit conduit = new CorbaServerConduit(endpointInfo, destination.getAddress(), targetObject, null, orbConfig, corbaTypeMap); String address = conduit.getAddress(); assertTrue("address should not be null", address != null); assertEquals(address, "corbaloc::localhost:40000/Simple"); }