### Question:
DataTypeListHighlightHelper { boolean hasBackgroundLine(final HTMLElement element) { return element.querySelector("." + LEVEL_BACKGROUND_LINE) != null; } @Inject  DataTypeListHighlightHelper(final DataTypeUtils dataTypeUtils); void init(final DataTypeList dataTypeList); void highlightLevel(final Element element); void highlight(final Element element); void cleanHighlightClass(); void cleanLevelHighlightClass(); DataTypeList getDataTypeList();  }### Answer:
@Test public void testHasBackgroundLineWhenItReturnsTrue() { final HTMLElement element = mock(HTMLElement.class); final HTMLElement line = mock(HTMLElement.class); when(element.querySelector("." + LEVEL_BACKGROUND_LINE)).thenReturn(line); assertTrue(helper.hasBackgroundLine(element)); }
@Test public void testHasBackgroundLineWhenItReturnsFalse() { final HTMLElement element = mock(HTMLElement.class); assertFalse(helper.hasBackgroundLine(element)); }