    @Test
    public void testSetHistorySize() throws Exception {

        System.out.println("setHistorySize");
        
        HistoryManagerImpl instance = new HistoryManagerImpl();
        instance.setHistorySize(HistoryManager.DEFAULT_HISTORY_SIZE);
        
        for(int i=0; i<10; i++) {
            RequestBean request = new RequestBean();
            request.setUrl(new URL("http://localhost/" + i));
            instance.add(request);
        }
        instance.setHistorySize(5);
        assertEquals(5, instance.size());
    }