MuleRegistry registry = muleContext.getRegistry();
SftpConnector c = (SftpConnector) registry.lookupConnector("sftp");
assertNotNull(c);
EndpointBuilder epb = registry.lookupEndpointBuilder("InvalidEndpoint");
InboundEndpoint ep = epb.buildInboundEndpoint();
// Verify that failed creations of sftp-clients don't leak resources (e.g.
// ssh-servers)
// In v2.2.1-RC2 this tests fails after 132 attempts on a Mac OSX 10.6