HiscorePanel extends PluginPanel { @VisibleForTesting static String formatLevel(int level) { if (level < 10000) { return Integer.toString(level); } else { return (level / 1000) + "k"; } } @Inject  HiscorePanel(@Nullable Client client,
		HiscoreConfig config, NameAutocompleter nameAutocompleter, OkHttpClient okHttpClient); @Override void onActivate(); void lookup(String username);  }
@Test public void testFormatLevel() { assertEquals("398", formatLevel(398)); assertEquals("5000", formatLevel(5000)); assertEquals("7682", formatLevel(7682)); assertEquals("12k", formatLevel(12398)); assertEquals("219k", formatLevel(219824)); }