  @Test
  public void shouldBanNameSilently() {

    PlayerData player = testUtils.createRandomPlayer();
    CommonServer server = spy(plugin.getServer());
    CommonSender sender = spy(server.getConsoleSender());
    String[] args = new String[]{player.getName(), "test", "-s"};

    assert (cmd.onCommand(sender, new CommandParser(plugin, args, 1)));

    await().until(() -> plugin.getNameBanStorage().isBanned(player.getName()));

    assertTrue(plugin.getNameBanStorage().getBan(player.getName()).isSilent());
  }