ShareTweetAction implements View.OnClickListener { String getShareSubject(Resources resources) { return resources.getString(R.string.tw__share_subject_format, tweet.user.name, tweet.user.screenName); } ShareTweetAction(Tweet tweet, TweetUi tweetUi); @Override void onClick(View v);  }
@Test public void testGetShareSubject() { final String shareSubject = listener.getShareSubject(resources); assertEquals(A_SHARE_SUBJECT, shareSubject); }