### Question:
AssignmentsEditorWidget extends Composite implements HasValue<String> { public void setReadOnly(final boolean readOnly) { activityDataIOEditor.setReadOnly(readOnly); } AssignmentsEditorWidget(final BPMNDefinition bpmnModel,
                            final String assignmentsInfo,
                            final boolean hasInputVars,
                            final boolean isSingleInputVar,
                            final boolean hasOutputVars,
                            final boolean isSingleOutputVar,
                            final SessionManager canvasSessionManager,
                            final GraphUtils graphUtils);  AssignmentsEditorWidget(); @EventHandler("assignmentsButton") void onClickAssignmentsButton(final ClickEvent clickEvent); @EventHandler("assignmentsTextBox") void onClickAssignmentsTextBox(final ClickEvent clickEvent); @Override String getValue(); @Override void setValue(final String value); @Override void setValue(final String value,
                         final boolean fireEvents); @Override HandlerRegistration addValueChangeHandler(final ValueChangeHandler<String> handler); void showAssignmentsDialog(); void showDataIOEditor(final String datatypes); void setReadOnly(final boolean readOnly); static final String DEFAULT_IGNORED_PROPERTY_NAMES; }### Answer:
@Test public void testSetReadOnlyTrue() { widget.setReadOnly(true); verify(activityDataIOEditor, times(1)).setReadOnly(true); }
@Test public void testSetReadOnlyFalse() { widget.setReadOnly(false); verify(activityDataIOEditor, times(1)).setReadOnly(false); }