added tests fo Stream. added EasyMock and JUnit.