/**
   * comparing.
   *
   * @throws Exception if failed
   */
  @Test
  public void compare() throws Exception {
    File a = deployer.getFile("a");
    File b = deployer.getFile("b");
    a.createNewFile();
    b.createNewFile();

    ZipRepository repo = new ZipRepository(a);
    assertThat(repo.toString(), repo, is(new ZipRepository(a)));
    assertThat(repo.hashCode(), is(new ZipRepository(a).hashCode()));
    assertThat(repo, is(not(new ZipRepository(b))));
  }
 private File open(String name) {
   String path = "ResourceRepository.files/" + name;
   return deployer.copy(path, name);
 }
 /**
  * missing file.
  *
  * @throws Exception if failed
  */
 @Test(expected = IOException.class)
 public void missing() throws Exception {
   ZipRepository file = new ZipRepository(deployer.getFile("missing"));
   fail(file.toString());
 }