### Question:
DynamicFormRenderer implements IsWidget,
                                            IsFormView { public Object getModel() { if (isInitialized()) { return formHandler.getModel(); } return null; } @Inject  DynamicFormRenderer(DynamicFormRendererView view,
                               FormHandlerGeneratorManager formHandlerGenerator,
                               DynamicFormModelGenerator dynamicFormModelGenerator); void renderDefaultForm(final Object model); void renderDefaultForm(final Object model,
                                  RenderMode renderMode); void renderDefaultForm(final Object model,
                                  final Command callback); void renderDefaultForm(final Object model,
                                  final RenderMode renderMode,
                                  final Command callback); void render(FormRenderingContext context); void bind(Object model); void addFieldChangeHandler(FieldChangeHandler handler); void addFieldChangeHandler(String fieldName,
                                      FieldChangeHandler handler); void unBind(); void setModel(Object model); Object getModel(); void switchToMode(RenderMode renderMode); boolean isValid(); @Override Widget asWidget(); Form getCurrentForm(); void flush(); boolean isInitialized();  }### Answer:
@Test public void testGetModel() { doBind(1); renderer.getModel(); verify(formHandler).getModel(); }
@Test public void testGetModelWithoutInitializing() { renderer.getModel(); verify(formHandler, never()).getModel(); }