CreditCardInstallment { private void init() { installmentAvailable = installment != null && installment.getTerms() != null && !installment.getTerms().isEmpty(); }  void setInstallment(Installment installment); boolean isInstallmentAvailable(); ArrayList<Integer> getTerms(String bank); int getTermByPosition(int currentPosition); void setTermSelected(int termPosition); boolean isInstallmentValid(); boolean isInstallmentOptionRequired(); void setAvailableStatus(boolean availableStatus); int getTermSelected(); String getBankSelected(); Installment getInstallment();  }
@Test public void init() { assertEquals(creditCardInstallment.getInstallment(), installmentMock); }