Flexible, in-memory streams for testing