Check if a demeter chain has already been established, then set up the expectation 


Check if a demeter chain has been established by regex-matching the keys of the existing mocks against the name of the method to be mocked.
Expectation and CompositeExpectation implement ExpectationInterface, which I needed for type hinting.