Allows stubbed methods to have several implementations.