}
@Test
public void testTrackBufferCleanup(){
IITTrackCollection collectionMock = EasyMock.createMock(IITTrackCollection.class);
Clock clockMock = EasyMock.createMock(Clock.class);
EasyMock.expect(clockMock.currentTime()).andReturn(0l);
EasyMock.expect(clockMock.currentTime()).andReturn(0l);
EasyMock.expect(clockMock.currentTime()).andReturn(0l);
EasyMock.expect(clockMock.currentTime()).andReturn(0l);
EasyMock.expect(clockMock.currentTime()).andReturn(1000001l);
EasyMock.replay(collectionMock);
EasyMock.replay(clockMock);
TrackBuffering buffer = new TrackBuffering(clockMock);
buffer.put("Test-Collection", collectionMock);