### Question:
SmallSwitchComponent { public HTMLElement getElement() { return view.getElement(); } @Inject  SmallSwitchComponent(final View view); HTMLElement getElement(); boolean getValue(); void setValue(final boolean value); void setOnValueChanged(final Consumer<Boolean> onValueChanged);  }### Answer:
@Test public void testGetElement() { final HTMLElement expectedElement = mock(HTMLElement.class); when(view.getElement()).thenReturn(expectedElement); final HTMLElement actualElement = switchComponent.getElement(); assertEquals(expectedElement, actualElement); }