@Test(expected = Updater.Ex.BadUpdateHash.class)
public void patchFailsHashCheck() throws Exception {

    byte[] fakePatch = new byte[1024];
    Arrays.fill(fakePatch, (byte) 0x42);
    paths.put("/2.jar.bpatch", fakePatch);
    byte[] b = "wrong".getBytes();
    configureIndex(b, b, b);
    updater = new TestUpdater(indexURL, "UnitTest", dir, null);
    updater.call();
}