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 toStringWithBigArrays() {
        String[] strings = new String[15];
        Arrays.fill(strings, "0");
        int[] ints = new int[15];
        Arrays.fill(ints, 1);
        long[] longs = new long[15];
        Arrays.fill(longs, 2L);
        double[] doubles = new double[15];
        Arrays.fill(doubles, 3.1D);
        float[] floats = new float[15];
        Arrays.fill(floats, 4.2F);
        byte[] bytes = new byte[15];
        Arrays.fill(bytes, (byte) 5);
        char[] chars = new char[15];
        Arrays.fill(chars, '6');

        assertThat(LogHelper.toString(strings)).isEqualTo("[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...]");
        assertThat(LogHelper.toString(ints)).isEqualTo("[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...]");
        assertThat(LogHelper.toString(longs)).isEqualTo("[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, ...]");
        assertThat(LogHelper.toString(doubles)).isEqualTo("[3.1, 3.1, 3.1, 3.1, 3.1, 3.1, 3.1, 3.1, 3.1, 3.1, ...]");
        assertThat(LogHelper.toString(floats)).isEqualTo("[4.2, 4.2, 4.2, 4.2, 4.2, 4.2, 4.2, 4.2, 4.2, 4.2, ...]");
        assertThat(LogHelper.toString(bytes)).isEqualTo("[5, 5, 5, 5, 5, 5, 5, 5, 5, 5, ...]");
        assertThat(LogHelper.toString(chars)).isEqualTo("[6, 6, 6, 6, 6, 6, 6, 6, 6, 6, ...]");
    }