### Question:
DayView extends ViewGroup { @VisibleForTesting void setHourLabelRects(int hourLabelStart, int hourLabelEnd, int firstDividerTop) { for (int i = 0; i < hourLabelViews.size(); i++) { View view = hourLabelViews.get(i); int height = view.getMeasuredHeight(); int top = firstDividerTop + usableHalfHourHeight * i * 2 - height / 2; int bottom = top + height; setRect(hourLabelRects.get(i), hourLabelStart, top, hourLabelEnd, bottom); } } DayView(@NonNull Context context);  DayView(@NonNull Context context, @Nullable AttributeSet attrs);  DayView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr); @VisibleForTesting  DayView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr, boolean enableDrawing); void setHourLabelViews(@NonNull List<View> hourLabelViews); void setEventViews(@Nullable List<View> eventViews,
                              @Nullable List<EventTimeRange> eventTimeRanges); @Nullable List<View> removeEventViews(); int getStartHour(); int getEndHour(); int getHourTop(int hour); int getHourBottom(int hour); int getFirstEventTop(); int getFirstEventBottom(); int getLastEventTop(); int getLastEventBottom(); @Override boolean shouldDelayChildPressedState();  }### Answer:
@Test public void setHourLabelRects() { dayView.setHourLabelRects(25, 75, 90); assertThat(dayView.hourLabelRects.get(0).getLeft(), is(25)); assertThat(dayView.hourLabelRects.get(0).getTop(), is(80)); assertThat(dayView.hourLabelRects.get(0).getRight(), is(75)); assertThat(dayView.hourLabelRects.get(0).getBottom(), is(100)); assertThat(dayView.hourLabelRects.get(6).getLeft(), is(25)); assertThat(dayView.hourLabelRects.get(6).getTop(), is(500)); assertThat(dayView.hourLabelRects.get(6).getRight(), is(75)); assertThat(dayView.hourLabelRects.get(6).getBottom(), is(520)); assertThat(dayView.hourLabelRects.get(13).getLeft(), is(25)); assertThat(dayView.hourLabelRects.get(13).getTop(), is(990)); assertThat(dayView.hourLabelRects.get(13).getRight(), is(75)); assertThat(dayView.hourLabelRects.get(13).getBottom(), is(1010)); assertThat(dayView.hourLabelRects.get(21).getLeft(), is(25)); assertThat(dayView.hourLabelRects.get(21).getTop(), is(1550)); assertThat(dayView.hourLabelRects.get(21).getRight(), is(75)); assertThat(dayView.hourLabelRects.get(21).getBottom(), is(1570)); }