@Test
public void formattingSVNDate() {

    GregorianCalendar cal = new GregorianCalendar(2007, Calendar.JULY, 11, 12, 32, 45);
    cal.setTimeZone(TimeZone.getTimeZone("GMT"));
    Date date = cal.getTime();
    assertThat("Windows SVN date format does not match", SVN.formatSVNDate(date, true),
            equalTo("\"{2007-07-11T12:32:45Z}\""));
    assertThat("non-Windows SVN date format does not match", SVN.formatSVNDate(date, false),
            equalTo("{2007-07-11T12:32:45Z}"));
}