    @Test
    public void testHandleSubscriptions() throws Exception {

        pool.cancelTimer();
        Field f = FeedView.class.getDeclaredField("feedPool");
        f.setAccessible(true);
        FeedRenderingPool rp = (FeedRenderingPool) f.get(fv1);
        rp.cancelTimer();
        final String feedId = "f1";
        FeedView fv2 = Mockito.mock(FeedView.class);
        FeedProvider fp2 = Mockito.mock(FeedProvider.class);
        Mockito.when(fp2.getSubscriptionId()).thenReturn(feedId);
        Mockito.when(fp2.toString()).thenReturn("fp2 : " + feedId);
        Mockito.when(fp2.getTimeService()).thenReturn(timeService);
        Mockito.when(fv2.getVisibleFeedProviders()).thenReturn(Collections.singleton(fp2)); 
        
        feedId1.set(feedId);
        Assert.assertEquals(fv1.getVisibleFeedProviders().iterator().next().getSubscriptionId(), feedId);
        Assert.assertEquals(fv1.getVisibleFeedProviders().iterator().next().getSubscriptionId().compareTo(fv2.getVisibleFeedProviders().iterator().next().getSubscriptionId()),0);
        pool.addFeedView(fv1);
        pool.handleSubscriptions();
        Mockito.verify(manager).subscribe(feedId);
        pool.handleSubscriptions();
        Mockito.verify(manager).subscribe(feedId);
        pool.addFeedView(fv2);
        pool.handleSubscriptions();
        Mockito.verify(manager,Mockito.times(1)).subscribe(feedId);
        pool.removeFeedView(fv1);
        pool.removeFeedView(fv2);
        pool.handleSubscriptions();
        Mockito.verify(manager).unsubscribe(feedId);
    }