public static String toString(RedisCommand<?> command, Object... params) {
        if (RedisCommands.AUTH.equals(command)) {
            return "command: " + command + ", params: (password masked)";
        }
        return "command: " + command + ", params: " + LogHelper.toString(params);
    }
@Test
    public void toStringWithSmallCollections() {
        List<String> strings = Collections.nCopies(1, "0");
        List<Integer> ints =  Collections.nCopies(1, 1);
        List<Long> longs =  Collections.nCopies(1, 2L);
        List<Double> doubles =  Collections.nCopies(1, 3.1D);
        List<Float> floats =  Collections.nCopies(1, 4.2F);
        List<Byte> bytes =  Collections.nCopies(1, (byte)5);
        List<Character> chars =  Collections.nCopies(1, '6');
        
        assertThat(LogHelper.toString(strings)).isEqualTo("[0]");
        assertThat(LogHelper.toString(ints)).isEqualTo("[1]");
        assertThat(LogHelper.toString(longs)).isEqualTo("[2]");
        assertThat(LogHelper.toString(doubles)).isEqualTo("[3.1]");
        assertThat(LogHelper.toString(floats)).isEqualTo("[4.2]");
        assertThat(LogHelper.toString(bytes)).isEqualTo("[5]");
        assertThat(LogHelper.toString(chars)).isEqualTo("[6]");
    }