@Test
public void should_create_error_message_ignoring_millisseconds() throws ParseException {
ErrorMessageFactory factory = shouldBeEqual(parseDatetimeWithMs("2011-01-01T05:00:00.000"),
parseDatetimeWithMs("2011-01-01T06:05:17.003"), TimeUnit.MILLISECONDS);
String message = factory.create(new TextDescription("Test"), new StandardRepresentation());
assertThat(message).isEqualTo("[Test] \nExpecting:\n <2011-01-01T05:00:00>\n" +
"to have same year, month, day, hour, minute and second as:\n " +
"<2011-01-01T06:05:17>\n" +
"but had not.");
}