@Test
public void testDeleteWithVersion() throws Exception {

  DeletionSelector versionSelector = DeletionSelector.delete(ORG_ID, MP_ID, VERSION_2);
  assertTrue(repo.delete(versionSelector));
  assertFalse(sampleElemDir.exists());
  File file = new File(PathSupport.concat(new String[] { tmpRoot.toString(), ORG_ID, MP_ID, VERSION_2.toString() }));
  assertFalse(file.exists());
  file = new File(PathSupport.concat(new String[] { tmpRoot.toString(), ORG_ID, MP_ID }));
  assertFalse(file.exists());
  file = new File(PathSupport.concat(new String[] { tmpRoot.toString(), ORG_ID }));
  assertTrue(file.exists());
}