    @Test
    public void test02() {

        c = new BookingEarningsCalculator();
        BookingBean b = BookingBeanTest.newInstance(LocalDate.of(2012, 02, 02), LocalDate.of(2012, 2, 5));
        b.setPaymentDone(true);
        b.setGrossEarningsExpression("30");
        float result = c.calculateEarnings(b);
        assertThat(result, is(30f));
    }