### Question:
DayView extends ViewGroup { protected void setRect(@NonNull DirectionalRect rect, int start, int top, int end, int bottom) { rect.set(isRtl, parentWidth, start, top, end, 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 setRect() { DirectionalRect rect = new DirectionalRect(); rect.set(false, 20, 1, 2, 3, 4); assertThat(rect.getLeft(), is(1)); assertThat(rect.getTop(), is(2)); assertThat(rect.getRight(), is(3)); assertThat(rect.getBottom(), is(4)); rect.set(true, 20, 1, 2, 3, 4); assertThat(rect.getLeft(), is(17)); assertThat(rect.getTop(), is(2)); assertThat(rect.getRight(), is(19)); assertThat(rect.getBottom(), is(4)); }