Attach to method not object in mocked container.