### Question:
CommentLinePresenter implements IsWidget,
                    CommentLineView.Presenter { public void setRecord( DiscussionRecord record ) { view.setAuthor( record.getAuthor() + ":" ); view.setComment( "\"" + record.getNote() + "\"" ); view.setDate( formatTimestamp( record.getTimestamp() ) ); } CommentLinePresenter();  CommentLinePresenter( CommentLineView view ); @Override Widget asWidget(); void setRecord( DiscussionRecord record );  }### Answer:
@Test public void testVisualization() { CommentLineView view = mock( CommentLineView.class ); CommentLinePresenter presenter = new CommentLinePresenterWithNOGWTCode( view ); Date commentDate = new Date( ); DiscussionRecord record = new DiscussionRecord( commentDate.getTime(), "test user", "test note" ); presenter.setRecord( record ); verify( view, times( 1 ) ).setAuthor( eq ( expectedAuthorFormat( "test user" ) ) ); verify( view, times( 1 ) ).setComment( eq( expectedCommentFormat( "test note" ) ) ); verify( view, times( 1 ) ).setDate( expectedDateFormat( commentDate.getTime() ) ); }