@Test
public void should_throw_exception_when_data_string_format_error() throws Exception {

    String str = "aa";
    Date date = new Date(System.currentTimeMillis());
    Date actual = Utils.getRegisterDateAsDdMmYyyy(str);
    assertThat("Should return same day", actual.getDay(), is(date.getDay()));
    assertThat("Should return same month", actual.getMonth(), is(date.getMonth()));
    assertThat("Should return same year", actual.getYear(), is(date.getYear()));
}