This would be handy to have for testing and mocking and I'd like to contribute to this feature if possible.