### Question:
FacilityConsumptionReportRH1Activity extends MonthBasedReportBaseActivity<FacilityCommodityConsumptionReportRH1Adapter> { @Override FacilityCommodityConsumptionReportRH1Adapter getAdapter() { return new FacilityCommodityConsumptionReportRH1Adapter(getApplicationContext(), R.layout.facility_commodity_consumption_report_rh1_item, new ArrayList<FacilityCommodityConsumptionRH1ReportItem>()); }    }### Answer:
@Test public void shouldSet10YearsInTheYearSpinner() throws Exception { FacilityConsumptionReportRH1Activity activity = getActivity(); assertThat(activity.spinnerStartingYear.getAdapter().getCount(), is(10)); }
@Test public void shouldSetCorrectNumberOfMonthsInTheStartingMonthSpinner() throws Exception { FacilityConsumptionReportRH1Activity activity = getActivity(); int months = DateUtil.monthNumber() + 1; assertThat(activity.spinnerStartingMonth.getAdapter().getCount(), is(months)); }
@Test public void shouldSetCorrectNumberOfMonthsInTheEndingMonthSpinner() throws Exception { FacilityConsumptionReportRH1Activity activity = getActivity(); int months = DateUtil.monthNumber() + 1; assertThat(activity.spinnerEndingMonth.getAdapter().getCount(), is(months)); }