### Question:
MoreLabel extends Label { @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); response.render(CssHeaderItem.forReference(NavigatorCssReference.get())); } MoreLabel(String id, IModel model, ItemsNavigatorBase navigator); ItemsNavigatorBase getNavigator(); @Override void renderHead(IHeaderResponse response);  }### Answer:
@Test(groups = {"wicketTests"}) public void renderHead_1(){ IHeaderResponse response=Mockito.mock(IHeaderResponse.class); ItemsNavigatorBase navigator = Mockito.mock(ItemsNavigatorBase.class); IQuickView repeater = mock(IQuickView.class); Mockito.when(navigator.getRepeater()).thenReturn(repeater); IModel model=Mockito.mock(IModel.class); MoreLabel more = new MoreLabel("more",model, navigator); more.renderHead(response); Mockito.verify(response,Mockito.times(1)).render(CssHeaderItem.forReference(NavigatorCssReference.get())); }