UserUtils { public static CharSequence formatScreenName(CharSequence screenName) { if (TextUtils.isEmpty(screenName)) { return ""; } if (screenName.charAt(0) == '@') { return screenName; } return "@" + screenName; } private  UserUtils(); static String getProfileImageUrlHttps(User user, AvatarSize size); static CharSequence formatScreenName(CharSequence screenName);  }
@Test public void testFormatScreenName_alreadyFormatted() { final String test = "@test"; assertEquals(test, UserUtils.formatScreenName(test)); }
@Test public void testFormatScreenName() { final String test = "@test"; assertEquals("@test", UserUtils.formatScreenName(test)); }