String expectedStartOfErrorMessage = "Error 'No such file' occurred when trying to CDW";
MuleRegistry registry = muleContext.getRegistry();
SftpConnector c = (SftpConnector) registry.lookupConnector("sftp");
assertNotNull(c);
EndpointBuilder epb = registry.lookupEndpointBuilder("InvalidEndpoint");
InboundEndpoint ep = epb.buildInboundEndpoint();