### Question:
DataTypeListShortcuts { void onTab() { view.getFirstDataTypeRow().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 testOnTab() { final Element firstDataTypeRow = mock(Element.class); when(view.getFirstDataTypeRow()).thenReturn(Optional.of(firstDataTypeRow)); shortcuts.onTab(); verify(view).highlight(firstDataTypeRow); }