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