### Question:
HugeArrays { static int exclusiveIndexOfPage(long index) { return 1 + (int) ((index - 1L) & PAGE_MASK); } private  HugeArrays(); static long oversize(long minTargetSize, int bytesPerElement);  }### Answer:
@Test void exclusiveIndexOfPageOnFirstPage() { assertEquals(1L, exclusiveIndexOfPage(1L)); assertEquals(PAGE_SIZE - 1L, exclusiveIndexOfPage(PAGE_SIZE - 1L)); }
@Test void exclusiveIndexDoesNotJumpToNextPage() { assertEquals(PAGE_SIZE, exclusiveIndexOfPage(0L)); assertEquals(PAGE_SIZE, exclusiveIndexOfPage(PAGE_SIZE)); }