### Question:
DataTypeSearchBar { public HTMLElement getElement() { return view.getElement(); } @Inject  DataTypeSearchBar(final View view,
                             final DataTypeSearchEngine searchEngine,
                             final DataTypeList dataTypeList); HTMLElement getElement(); void refresh(); void reset(); boolean isEnabled();  }### Answer:
@Test public void testGetElement() { final HTMLElement expectedElement = mock(HTMLElement.class); when(view.getElement()).thenReturn(expectedElement); final HTMLElement actualElement = searchBar.getElement(); assertEquals(expectedElement, actualElement); }