### Question:
PlayerUtils { public static String getPlayerIp(Player p) { return p.getAddress().getAddress().getHostAddress(); } private  PlayerUtils(); static String getUuidOrName(OfflinePlayer player); static String getPlayerIp(Player p); static boolean isNpc(Player player);  }### Answer:
@Test public void shouldGetPlayerIp() { Player player = mock(Player.class); String ip = "124.86.248.62"; TestHelper.mockPlayerIp(player, ip); String result = PlayerUtils.getPlayerIp(player); assertThat(result, equalTo(ip)); }