Extracted MockContext out of MockFactoryBase