@Test
public void getInstallmentTerm() throws Exception {

    initSampleTerms();
    when(installment.getTerms()).thenReturn(sampleTerms);
    when(installment.isRequired()).thenReturn(true);
    when(card.getInstallment()).thenReturn(installment);
    cardInstallment.setInstallment(installment);
    cardTransaction.setProperties(card, readDefaultBankBins());
    cardTransaction.getInstallmentTerms(BIN_VALID);
    int term = cardTransaction.getInstallmentTerm(1);
    assertEquals(6, term);
}