_attributes = new HashMap<String, Object>();
_attributes.put(Port.PROTOCOLS, nonAmqpStringSet);
_attributes.put(Port.AUTHENTICATION_PROVIDER, _authProviderName);
_attributes.put(Port.PORT, _portNumber);
Port port = _portFactory.createPort(_portId, _broker, _attributes);
assertNotNull(port);
assertFalse("Port should be a PortAdapter, not its AMQP-specific subclass", port instanceof AmqpPortAdapter);
assertEquals(_portId, port.getId());
assertEquals(_portNumber, port.getPort());
assertEquals(Collections.singleton(PortFactory.DEFAULT_TRANSPORT), port.getTransports());
assertEquals(nonAmqpProtocolSet, port.getProtocols());
assertNull("Unexpected send buffer size", port.getAttribute(Port.SEND_BUFFER_SIZE));
assertNull("Unexpected receive buffer size", port.getAttribute(Port.RECEIVE_BUFFER_SIZE));
assertNull("Unexpected need client auth", port.getAttribute(Port.NEED_CLIENT_AUTH));
assertNull("Unexpected want client auth", port.getAttribute(Port.WANT_CLIENT_AUTH));
assertNull("Unexpected tcp no delay", port.getAttribute(Port.TCP_NO_DELAY));
assertNull("Unexpected binding", port.getAttribute(Port.BINDING_ADDRESS));
}