@Test(expected = HashNotMatchException.class)
public void testValidateDependencyHashInvalid() throws Exception {

  File depFile = TEMP_DIR.newFile("dep.jar");
  Dependency details = new Dependency(
      "dep.jar",
      "lib",
      "jar",
      "com.linkedin.test:blahblah:1.0.1",
      "73f018101ec807672cd3b06d5d7a0fc48f54428f"); // This is not the hash of depFile
  DependencyFile f = details.makeDependencyFile(depFile);
  // This should throw an exception because the hashes don't match
  ThinArchiveUtils.validateDependencyHash(f);
}