Implemented full mock support.