@Test public void testMaxPositionMiddle() { int[] x = {1, 5, 3, 7, 8, 9}; MySorter s = new MySorter(); assertEquals(1, s.maxPosition(x, 2)); }