### Question:
ConditionEditorFieldEditorRenderer extends FieldRenderer<ConditionEditorFieldDefinition, DefaultFormGroup> { @Override public void init(FormRenderingContext renderingContext, ConditionEditorFieldDefinition field) { super.init(renderingContext, field); widget.init(sessionManager.getCurrentSession()); } @Inject  ConditionEditorFieldEditorRenderer(final ConditionEditorFieldEditorWidget widget,
                                              final SessionManager sessionManager); @Override String getName(); @Override void init(FormRenderingContext renderingContext,
                     ConditionEditorFieldDefinition field);  }### Answer:
@Test public void testInit() { FormRenderingContext context = mock(FormRenderingContext.class); ConditionEditorFieldDefinition fieldDefinition = mock(ConditionEditorFieldDefinition.class); ClientSession session = mock(ClientSession.class); when(sessionManager.getCurrentSession()).thenReturn(session); renderer.init(context, fieldDefinition); verify(widget).init(session); }