@Test(expected = VerificationException.class)
public void badOutputScript() throws Exception {

    TxData pledgeTX = makePledge(details, 0.1);
    LHProtos.Pledge.Builder pledge = LHProtos.Pledge.newBuilder();
    pledge.addTransactions(ByteString.copyFrom(pledgeTX.pledge.bitcoinSerialize()));
    final Coin val = Coin.COIN.divide(10);
    pledge.getPledgeDetailsBuilder().setTotalInputValue(val.value);
    pledge.getPledgeDetailsBuilder().setTimestamp(Utils.currentTimeSeconds());
    pledge.getPledgeDetailsBuilder().setProjectId("abc");
    Project project = new Project(projectBuilder.build());
    TransactionOutput badOutput = new TransactionOutput(params, null, val,
            new ScriptBuilder().op(ScriptOpCodes.OP_TRUE).build().getProgram());
    List<TransactionOutput> outputs = ImmutableList.of(badOutput);
    checkedGet(project.verifyPledge(outPoints -> completedFuture(outputs), pledge.build()));
}