    @Test
    public void testAutoCalcAndSetDatesBoundsInc3() throws ParseException, InvalidAlgorithmParameterException {

        
        simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
        Date previousStart = simpleDateFormat.parse("2009-12-21");
        Date previousEnd = simpleDateFormat.parse("2015-12-20");
        

        EasyMock.expect(tunedConf.getLastCalculationStart()).andReturn(previousStart);
        EasyMock.expect(tunedConf.getLastCalculationEnd()).andReturn(previousEnd);
        EasyMock.expect(tunedConf.getTunedConfId()).andReturn(new TunedConfId(stock, analysisName, eventDef.getEventDefinitionRef()));

        
        PowerMock.replayAll();
        
        checker = new EventsStatusChecker(tunedConf);
        
        //when
        Date startRequested = simpleDateFormat.parse("2010-12-21");
        Date endRequested = simpleDateFormat.parse("2017-12-21");
        CalculationBounds autoCalcAndSetDatesBounds = checker.autoCalcAndSetDatesBounds(startRequested, endRequested);
        
        //then
        assertEquals(TunedConfMgr.CalcStatus.INC, autoCalcAndSetDatesBounds.getCalcStatus());
        assertEquals(previousStart, (autoCalcAndSetDatesBounds.getNewTunedConfStart()));
        assertEquals(endRequested, autoCalcAndSetDatesBounds.getNewTunedConfEnd());
        assertEquals(previousEnd, autoCalcAndSetDatesBounds.getPmStart());
        assertEquals(endRequested, autoCalcAndSetDatesBounds.getPmEnd());
    }