### Question:
DataTypeListShortcuts { void onArrowUp() { view.getPrevDataTypeRow().ifPresent(view::highlight); } @Inject  DataTypeListShortcuts(final View view,
                                 final DataTypeUtils dataTypeUtils); @PostConstruct void init(); void init(final DataTypeList dataTypeList); void reset();  }### Answer:
@Test public void testOnArrowUp() { final Element prevDataTypeRow = mock(Element.class); when(view.getPrevDataTypeRow()).thenReturn(Optional.of(prevDataTypeRow)); shortcuts.onArrowUp(); verify(view).highlight(prevDataTypeRow); }