@Test
void getNameShouldReturnArgumentForConsole() {

    String[] args = new String[]{"TestConsoleSender"};
    String expected = "TestConsoleSender";
    Sender sender = Mockito.mock(Sender.class);
    when(sender.getSenderType()).thenReturn(SenderType.CONSOLE);
    String result = MiscUtils.getPlayerName(args, sender);
    assertEquals(expected, result);
}