### Question:
AnnotationValuePairListItem implements AnnotationValuePairListItemView.Presenter, IsWidget { public void setReadonly( boolean readonly ) { view.setReadonly( readonly ); } AnnotationValuePairListItem( ); @Inject  AnnotationValuePairListItem( AnnotationValuePairListItemView view ); @Override Widget asWidget( ); void loadValuePair( final Annotation annotation,
                               final AnnotationValuePairDefinition valuePairDefinition,
                               final AnnotationSource annotationSource ); void setReadonly( boolean readonly ); void setClearValuePairHandler( AdvancedAnnotationListEditorView.ClearValuePairHandler clearValuePairHandler ); void setEditValuePairHandler( AdvancedAnnotationListEditorView.EditValuePairHandler editValuePairHandler ); @Override void onEdit( ); @Override void onClear( );  }### Answer:
@Test public void testSetReadonlyTrue( ) { listItem.setReadonly( true ); verify( view, times( 1 ) ).setReadonly( true ); }
@Test public void testSetReadonlyFalse( ) { listItem.setReadonly( false ); verify( view, times( 1 ) ).setReadonly( false ); }