### Question:
MoreLabel extends Label { protected AjaxEventBehavior newOnClickBehavior(){ return new OnClickBehavior(); } MoreLabel(String id, IModel model, ItemsNavigatorBase navigator); ItemsNavigatorBase getNavigator(); @Override void renderHead(IHeaderResponse response);  }### Answer:
@Test(groups = {"wicketTests"}) public void newOnClickBehavior(){ IModel model= Mockito.mock(IModel.class); ItemsNavigatorBase navigator=Mockito.mock(ItemsNavigatorBase.class); MoreLabel label=new MoreLabel("id",model,navigator) ; AjaxEventBehavior behavior=label.newOnClickBehavior(); Assert.assertEquals(behavior.getEvent(), "click"); }