The Mockable module for Drupal allows you to define mock objects
for a Drupal module (or website) to communicate with external data systems.
Mock objects allow developers to simulate behaviour, data and system which are not readily controllable, from the very simple (the current time) to the complex (interaction with an external CRM).