    @Test
    public void shouldReturnCorrectMaximumThresholdForGivenPeriod() throws Exception {

        Commodity commodity = commodityService.all().get(1);
        Calendar calendar = Calendar.getInstance();
        calendar.set(2014, Calendar.APRIL, 01);
        Date startDate = calendar.getTime();

        calendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMaximum(Calendar.DAY_OF_MONTH));
        Date endDate = calendar.getTime();

        int amc = commodityActionService.getMonthlyValue(commodity, startDate, endDate, DataElementType.MAX_STOCK_QUANTITY);
        assertThat(amc, is(47));
    }