public class MessageExchangeImplTest extends TestCase {
public void testMep() {
MessageExchange me;
me = new MessageExchangeImpl(new ExchangeImpl(Pattern.InOnly));
assertEquals("http://www.w3.org/2004/08/wsdl/in-only", me.getPattern().toString());
me = new MessageExchangeImpl(new ExchangeImpl(Pattern.InOut));
assertEquals("http://www.w3.org/2004/08/wsdl/in-out", me.getPattern().toString());
me = new MessageExchangeImpl(new ExchangeImpl(Pattern.InOptionalOut));
assertEquals("http://www.w3.org/2004/08/wsdl/in-opt-out", me.getPattern().toString());
me = new MessageExchangeImpl(new ExchangeImpl(Pattern.RobustInOnly));
assertEquals("http://www.w3.org/2004/08/wsdl/robust-in-only", me.getPattern().toString());
}