@Before
public void setUp() {
router = mock(OutgoingPortUtilService.class);
registryImpl = new ProxyConnectorRegistryImpl();
ProxyRegistration registration = registryImpl.create("foo");
proxy = new ProxyConnector("foo", null, registration);
proxy.setOutgoingPortUtilService(router);
proxy.setPortId("id");
proxy.setDestination("test");
proxy.addMetadata("key", "value");
registryImpl.registerConnector("foo", "jms-json", "tcp://localhost");