@Test
public void testSetPropertyOnDelete() throws ParseException {

    svn.setPropertyOnDelete("hasDeletions?");
    final List<Modification> noModifications = new ArrayList<Modification>();
    svn.fillPropertiesIfNeeded(noModifications);
    assertThat(svn.getProperties().get("hasDeletions?"), nullValue());
    final List<Modification> noDeletions = new ArrayList<Modification>();
    noDeletions.add(createModification(SVN.getOutDateFormatter().parse("2003-08-02T10:01:13.349"), "lee", "bli",
            "663", "", "/trunk/playground/bbb", "added"));
    svn.fillPropertiesIfNeeded(noDeletions);
    assertThat(svn.getProperties().get("hasDeletions?"), nullValue());
    final List<Modification> hasDeletions = new ArrayList<Modification>();
    hasDeletions.add(createModification(SVN.getOutDateFormatter().parse("2003-08-02T10:01:13.349"), "lee", "bli",
            "663", "", "/trunk/playground/aaa", "added"));
    hasDeletions.add(createModification(SVN.getOutDateFormatter().parse("2003-08-02T10:01:13.349"), "lee", "bli",
            "663", "", "/trunk/playground/bbb", "deleted"));
    svn.fillPropertiesIfNeeded(hasDeletions);
    assertThat(svn.getProperties().get("hasDeletions?"), equalTo("true"));
}