class CreditCardTransaction {

    public boolean isInWhiteList(String cardBin) {
        return isWhiteListBinsAvailable() && creditCard.getWhitelistBins().contains(cardBin);
    }

}

class CreditCardTransactionTest {

    private static final String BIN_VALID;
    private static final String BIN_INVALID;
    private static final String BANK_MANDIRI;
    private static final String MANDIRI_BIN;
    private static final String BANK_BNI;
    private static final String BANK_OFFLINE;
    private CreditCardTransaction cardTransaction;
    private ArrayList<String> bankBins;
    private CreditCard card;
    private CreditCardInstallment cardInstallment;
    private Installment installment;
    private Map<String, ArrayList<Integer>> sampleTerms;

    @Test
    public void isInWhitlistbins_whenInvalid() {

        assertFalse(cardTransaction.isInWhiteList(BIN_INVALID));
    }

}