@Test
public void dateToStringShouldConvertSpecifiedDateToStringWithCorrectFormat() {

    final Date date = new DateTime().withDate(2014, 5, 13).withTime(23, 52, 28, 0).toDate();
    final String dateAsString = dateTools.dateToString(date, "dd.MM.yyyy HH:mm:ss");
    assertEquals("13.05.2014 23:52:28", dateAsString);
}