A Mock API for testing client libraries