### Question:
AnnotationListItem implements AnnotationListItemView.Presenter, IsWidget { public void setCollapsed( boolean collapsed ) { view.setCollapsed( collapsed ); } AnnotationListItem( ); @Inject  AnnotationListItem( AnnotationListItemView view, Instance<AnnotationValuePairListItem> itemInstance ); @Override Widget asWidget( ); void loadAnnotation( Annotation annotation, AnnotationSource annotationSource ); void setDeleteAnnotationHandler( AdvancedAnnotationListEditorView.DeleteAnnotationHandler deleteAnnotationHandler ); void setClearValuePairHandler( AdvancedAnnotationListEditorView.ClearValuePairHandler clearValuePairHandler ); void setEditValuePairHandler( AdvancedAnnotationListEditorView.EditValuePairHandler editValuePairHandler ); void setCollapseChangeHandler( AdvancedAnnotationListEditorView.CollapseChangeHandler collapseChangeHandler ); boolean isCollapsed( ); void setCollapsed( boolean collapsed ); void setReadonly( boolean readonly ); @Override void onDelete( ); @Override void onCollapseChange( );  }### Answer:
@Test public void testSetCollapsedTrue( ) { listItem.setCollapsed( true ); verify( view, times( 1 ) ).setCollapsed( true ); }
@Test public void testSetCollapsedFalse( ) { listItem.setCollapsed( false ); verify( view, times( 1 ) ).setCollapsed( false ); }