### Question:
FacilityConsumptionReportRH2Activity extends MonthBasedReportBaseActivity { @Override ArrayAdapter getAdapter() { return new FacilityConsumptionReportRH2Adapter(context, R.layout.facility_consumption_report_rh2_item, new ArrayList<FacilityConsumptionReportRH2Item>()); }    }### Answer:
@Test public void shouldSet10YearsInTheYearSpinner() throws Exception { FacilityConsumptionReportRH2Activity activity = getActivity(); assertThat(activity.spinnerStartingYear.getAdapter().getCount(), is(10)); }
@Test public void shouldSetCorrectMonthsInTheStartingMonthSpinner() throws Exception { FacilityConsumptionReportRH2Activity activity = getActivity(); int months = DateUtil.monthNumber() + 1; assertThat(activity.spinnerStartingMonth.getAdapter().getCount(), is(months)); }
@Test public void shouldSetCorrectMonthsInTheEndingMonthSpinner() throws Exception { FacilityConsumptionReportRH2Activity activity = getActivity(); int months = DateUtil.monthNumber() + 1; assertThat(activity.spinnerEndingMonth.getAdapter().getCount(), is(months)); }