    @Test
    public void calculatesQuarterCorrectly() {

        DateTime dateTime = DateTime.now();
        DateTime startOfQuarter = DateTimeUtils.withStartOfQuarter(dateTime.withMonthOfYear(2));
        Assert.assertEquals(1, startOfQuarter.monthOfYear().get());

        startOfQuarter = DateTimeUtils.withStartOfQuarter(dateTime.withMonthOfYear(5));
        Assert.assertEquals(4, startOfQuarter.monthOfYear().get());

        startOfQuarter = DateTimeUtils.withStartOfQuarter(dateTime.withMonthOfYear(8));
        Assert.assertEquals(7, startOfQuarter.monthOfYear().get());

        startOfQuarter = DateTimeUtils.withStartOfQuarter(dateTime.withMonthOfYear(11));
        Assert.assertEquals(10, startOfQuarter.monthOfYear().get());
    }