### Question:
AnnotationValuePairListItem implements AnnotationValuePairListItemView.Presenter, IsWidget { @Override public void onEdit( ) { if ( editValuePairHandler != null ) { editValuePairHandler.onEditValuePair( annotation, valuePairDefinition.getName( ) ); } } 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 testOnEdit( ) { listItem.setEditValuePairHandler( editValuePairHandler ); listItem.loadValuePair( annotation, valuePairDefinition, annotationSource ); listItem.onEdit( ); verify( editValuePairHandler, times( 1 ) ).onEditValuePair( annotation, VALUE_PAIR_NAME ); }