### Question:
FacilityConsumptionReportRH1Activity extends MonthBasedReportBaseActivity<FacilityCommodityConsumptionReportRH1Adapter> { LinearLayout buildHeaderView() { LinearLayout linearLayout = (LinearLayout) getLayoutInflater().inflate(getHeaderLayout(), null); try { Date startingDate = reportsService.convertToDate(getStartingYear(), getStartingMonth(), true); Date endDate = reportsService.convertToDate(getStartingYear(), getStartingMonth(), false); List<DateTime> days = reportsService.getDays(startingDate, endDate); LinearLayout layoutRows = (LinearLayout) linearLayout.findViewById(R.id.layoutDates); for (DateTime day : days) { TextView textView = new TextView(getApplicationContext()); textView.setText(String.valueOf(day.getDayOfMonth())); textView.setTextColor(getResources().getColor(R.color.black)); textView.setTypeface(null, Typeface.BOLD); textView.setLayoutParams(FacilityCommodityConsumptionReportRH1Adapter.PARAMS); layoutRows.addView(textView); } } catch (ParseException e) { Log.e(TAG, "Error parsing dates:" + e.getLocalizedMessage()); } return linearLayout; }    }### Answer:
@Test @Ignore public void shouldHaveManyTextViewsInSecondRowOfListViewHeader() throws Exception { FacilityConsumptionReportRH1Activity activity = getActivity(); assertThat(activity.listViewReport.getHeaderViewsCount(), is(1)); LinearLayout linearLayout = activity.buildHeaderView(); assertThat(linearLayout.getChildCount(), is(greaterThan(1))); LinearLayout secondRow = (LinearLayout) linearLayout.findViewById(R.id.layoutDates); assertThat(secondRow.getChildCount(), is(greaterThan(0))); }