### Question:
MultipleSelectionAndFocus implements SelectionAndFocus { void moveUp(int row) { int newRow = row - 1; move(row, newRow); } MultipleSelectionAndFocus(int originalFocus); @Override int getFocus(); @Override int getRow(); @Override int[] getRows(); @Override String toString();  }### Answer:
@Test public void moveUp() { MultipleSelectionAndFocus victim = new MultipleSelectionAndFocus(-1); victim.moveUp(4); victim.moveUp(5); assertEquals(-1, victim.getFocus()); assertEquals(3, victim.getRow()); assertArrayEquals(new int[] { 4 }, victim.getRows()); }