Mock http connector and test