A sketch of StreamManager interface and test.