public void testtotalCountableIncomeTimeline1() {
    final Number caseID = 1111L;
    final List<CaseParticipantRole> caseParticipantRoleList = createCaseParticipantRole();
    final List<SAHouseholdUnitMember> saHouseholdUnitMemberList =
        createSAHouseholdUnitMember(caseParticipantRoleList);

    final SAHouseholdUnitCalculator saHouseholdUnitCalculator =
        SAHouseholdUnitCalculator_Factory.getFactory().newInstance(getSession());
    saHouseholdUnitCalculator.mandatoryMembers().specifyValue(saHouseholdUnitMemberList);
    final List<Interval<Number>> amount = new ArrayList<Interval<Number>>();
    amount.add(new Interval<Number>(null, 0));
    amount.add(new Interval<Number>(Date.fromISO8601("20040601"), 3000));
    final Timeline<Number> amountTimeline = new Timeline<Number>(amount);

    final List<Interval<Number>> amount2 = new ArrayList<Interval<Number>>();
    amount2.add(new Interval<Number>(null, 0));
    amount2.add(new Interval<Number>(Date.fromISO8601("20040601"), 4000));
    final Timeline<Number> amount2Timeline = new Timeline<Number>(amount2);

    final List<Interval<Number>> amount3 = new ArrayList<Interval<Number>>();
    amount3.add(new Interval<Number>(null, 0));
    amount3.add(new Interval<Number>(Date.fromISO8601("20040601"), 0));
    final Timeline<Number> amount3Timeline = new Timeline<Number>(amount3);

    final FamilyOfMissingEligibilityUnitCalculator familyOfMissingObj =
        FamilyOfMissingEligibilityUnitCalculator_Factory.getFactory()
            .newInstance(getSession(), caseID, saHouseholdUnitCalculator);
    familyOfMissingObj.caseID().specifyValue(caseID);
    familyOfMissingObj.unearnedIncomeAmount().specifyValue(amountTimeline);
    familyOfMissingObj.totalExpenseAmountTimeline().specifyValue(amount2Timeline);
    CREOLETestHelper.assertEquals(
        amount3Timeline, familyOfMissingObj.totalCountableIncomeTimeline().getValue());
  }
  public void testhasHouseholdPassedIncomeTestTimeline1() {
    final Number caseID = 1111L;
    final List<CaseParticipantRole> caseParticipantRoleList = createCaseParticipantRole();
    final List<SAHouseholdUnitMember> saHouseholdUnitMemberList =
        createSAHouseholdUnitMember(caseParticipantRoleList);

    final SAHouseholdUnitCalculator saHouseholdUnitCalculator =
        SAHouseholdUnitCalculator_Factory.getFactory().newInstance(getSession());
    saHouseholdUnitCalculator.mandatoryMembers().specifyValue(saHouseholdUnitMemberList);

    final List<Interval<Number>> amount = new ArrayList<Interval<Number>>();
    amount.add(new Interval<Number>(null, 1000));
    amount.add(new Interval<Number>(Date.fromISO8601("20040601"), 6000));
    final Timeline<Number> amountTimeline = new Timeline<Number>(amount);

    final List<Interval<Number>> amount2 = new ArrayList<Interval<Number>>();
    amount2.add(new Interval<Number>(null, 0));
    amount2.add(new Interval<Number>(Date.fromISO8601("20040601"), 1000));
    final Timeline<Number> amount2Timeline = new Timeline<Number>(amount2);

    final List<Interval<Boolean>> result = new ArrayList<Interval<Boolean>>();
    result.add(new Interval<Boolean>(null, false));
    result.add(new Interval<Boolean>(Date.fromISO8601("20040601"), false));
    final Timeline<Boolean> resultTimeline = new Timeline<Boolean>(result);

    final FamilyOfMissingEligibilityUnitCalculator familyOfMissingObj =
        FamilyOfMissingEligibilityUnitCalculator_Factory.getFactory()
            .newInstance(getSession(), caseID, saHouseholdUnitCalculator);
    familyOfMissingObj.caseID().specifyValue(caseID);
    familyOfMissingObj.totalCountableIncomeTimeline().specifyValue(amountTimeline);
    familyOfMissingObj.primaryBeneficiaryAmount().specifyValue(amount2Timeline);
    CREOLETestHelper.assertEquals(
        resultTimeline, familyOfMissingObj.hasHouseholdPassedIncomeTestTimeline().getValue());
  }