public static void verify(NetworkParameters params, Block block, int height, EnumSet<VerifyFlag> flags) throws VerificationException {
        verifyHeader(block);
        verifyTransactions(params, block, height, flags);
    }
@Test
    public void testBadTransactions() {
        // Re-arrange so the coinbase transaction is not first.
        Transaction tx1 = block700000.transactions.get(0);
        Transaction tx2 = block700000.transactions.get(1);
        block700000.transactions.set(0, tx2);
        block700000.transactions.set(1, tx1);
        try {
            Block.verify(TESTNET, block700000, Block.BLOCK_HEIGHT_GENESIS, EnumSet.noneOf(Block.VerifyFlag.class));
            fail();
        } catch (VerificationException e) {
            // We should get here.
        }
    }