Unit tests for the resettable input stream