public TransactionConfidence getConfidence() {
        return getConfidence(Context.get());
    }
@Test
    public void testIsMatureReturnsFalseIfTransactionIsCoinbaseAndConfidenceTypeIsNotEqualToBuilding() {
        Wallet wallet = Wallet.createBasic(BitcoinNetwork.TESTNET);
        Transaction tx = FakeTxBuilder.createFakeCoinbaseTx();

        tx.getConfidence().setConfidenceType(ConfidenceType.UNKNOWN);
        assertFalse(wallet.isTransactionMature(tx));

        tx.getConfidence().setConfidenceType(ConfidenceType.PENDING);
        assertFalse(wallet.isTransactionMature(tx));

        tx.getConfidence().setConfidenceType(ConfidenceType.DEAD);
        assertFalse(wallet.isTransactionMature(tx));
    }