### Question:
TwoLevelNavigator implements TwoDimensional { @Override public Position offsetToPosition(int offset, Bias bias) { return position(0, 0).offsetBy(offset, bias); } TwoLevelNavigator(IntSupplier elemCount, IntUnaryOperator elemLength); @Override Position position(int major, int minor); @Override Position offsetToPosition(int offset, Bias bias);  }### Answer:
@Test public void testLeftBoundary() { Position pos = navigator.offsetToPosition(25, Forward).offsetBy(-50, Forward); assertEquals(0, pos.getMajor()); assertEquals(0, pos.getMinor()); }
@Test public void testPositiveOffsetWithBackwardBias() { Position pos = navigator.offsetToPosition(10, Backward); assertEquals(0, pos.getMajor()); assertEquals(10, pos.getMinor()); }
@Test public void testPositiveOffsetWithForwardBias() { Position pos = navigator.offsetToPosition(10, Forward); assertEquals(1, pos.getMajor()); assertEquals(0, pos.getMinor()); }
@Test public void testRightBoundary() { Position pos = navigator.offsetToPosition(100, Forward); assertEquals(4, pos.getMajor()); assertEquals(60, pos.getMinor()); pos = pos.clamp(); assertEquals(4, pos.getMajor()); assertEquals(9, pos.getMinor()); }