### Question:
PagingIndicator extends View { public void setPageCount(int pages) { if (pages <= 0) { throw new IllegalArgumentException("The page count should be a positive integer"); } mPageCount = pages; mDots = new Dot[mPageCount]; for (int i = 0; i < mPageCount; ++i) { mDots[i] = new Dot(); } calculateDotPositions(); setSelectedPage(0); } PagingIndicator(Context context);  PagingIndicator(Context context, AttributeSet attrs);  PagingIndicator(Context context, AttributeSet attrs, int defStyle); void setArrowColor(@ColorInt int color); void setDotBackgroundColor(@ColorInt int color); void setArrowBackgroundColor(@ColorInt int color); void setPageCount(int pages); void onPageSelected(int pageIndex, boolean withAnimation); @Override void onRtlPropertiesChanged(int layoutDirection);  }### Answer:
@Test public void testDotPosition() { mIndicator.setPageCount(3); assertDotPosition(); mIndicator.setPageCount(6); assertDotPosition(); mIndicator.setPageCount(9); assertDotPosition(); }