@Test(expected = ScriptException.class)
public void badSignature() throws Exception {

    TxData pledgeTX = makePledge(details, 0.1);
    pledgeTX.pledge.getInput(0).setScriptSig(ScriptBuilder.createInputScript(TransactionSignature.dummy(), pledgeTX.key));
    LHProtos.Pledge.Builder pledge = pledgeToBuilder(pledgeTX, false);
    Project project = new Project(projectBuilder.build());
    List<TransactionOutput> outputs = ImmutableList.of(pledgeTX.fakeStub.getOutput(0).duplicateDetached());
    checkedGet(project.verifyPledge(outPoints -> completedFuture(outputs), pledge.build()));
}