public static String formatToSimpleDate(Date date) {
        SimpleDateFormat simpleDate = new SimpleDateFormat("dd MMM yyyy");
        return simpleDate.format(date);
    }
@Test
    public void shouldFormatDateToDisplayOnUI() {
        Calendar instance = Calendar.getInstance();
        instance.set(2009, Calendar.NOVEMBER, 5);
        Date date = instance.getTime();
        String formattedDate = DateUtils.formatToSimpleDate(date);
        assertThat(formattedDate, is("05 Nov 2009"));
    }