Mocking with basic auth.