@Test
public void shouldForValidateIndebtednessRate() {

    CashFlowDetail cashFlowDetail = new CashFlowDetail(Collections.EMPTY_LIST);
    cashFlowDetail.setTotalCapital(BigDecimal.TEN);
    cashFlowDetail.setTotalLiability(BigDecimal.TEN);
    CashFlowForm cashFlowForm;
    cashFlowForm = new CashFlowForm(cashFlowDetail, true, new BigDecimal(123), null);
    assertThat(cashFlowForm.shouldForValidateIndebtednessRate(), is(false));
    cashFlowForm = new CashFlowForm(cashFlowDetail, true, new BigDecimal(123), 0d);
    assertThat(cashFlowForm.shouldForValidateIndebtednessRate(), is(false));
    cashFlowForm = new CashFlowForm(cashFlowDetail, true, null, 123d);
    assertThat(cashFlowForm.shouldForValidateIndebtednessRate(), is(false));
    cashFlowForm = new CashFlowForm(null, true, new BigDecimal(123), 123d);
    assertThat(cashFlowForm.shouldForValidateIndebtednessRate(), is(false));
    cashFlowForm = new CashFlowForm(cashFlowDetail, false, new BigDecimal(123), 123d);
    assertThat(cashFlowForm.shouldForValidateIndebtednessRate(), is(false));
    cashFlowForm = new CashFlowForm(cashFlowDetail, true, new BigDecimal(123), 123d);
    assertThat(cashFlowForm.shouldForValidateIndebtednessRate(), is(true));
}