NetworkConnector networkConnector = (NetworkConnector) networkConnectors.get(0);
List networkChannels = networkConnector.getNetworkChannels();
assertEquals("Should have 2 network channels", 2, networkChannels.size());
NetworkChannel networkChannel = (NetworkChannel) networkChannels.get(0);
assertEquals("URL not equal", "tcp://somehost:61616", networkChannel.getUri());
assertEquals("remoteUserName", "James", networkChannel.getRemoteUserName());
assertEquals("remotePassword", "Stewey", networkChannel.getRemotePassword());
System.out.println("Created network channel: " + networkChannel);
SecurityAdapter securityAdapter = broker.getSecurityAdapter();
assertTrue("Should have created a security adapter", securityAdapter != null);