    @Test
    public void testDateToString() {

        assertEquals("01/01/1901", BaseUtils.dateToString(new Date(1, 0, 1)));
        assertEquals("03/12/2001", BaseUtils.dateToString(new Date(101, 11, 3)));
        assertEquals("14/10/2012", BaseUtils.dateToString(new Date(112, 9, 14)));

        assertEquals("01.01.1901", BaseUtils.dateToString("dd.MM.yyyy", new Date(1, 0, 1)));
        assertEquals("03.12.2001", BaseUtils.dateToString("dd.MM.yyyy", new Date(101, 11, 3)));
        assertEquals("14.10.2012", BaseUtils.dateToString("dd.MM.yyyy", new Date(112, 9, 14)));
    }