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 toStringWithNestedSmallArrays() {
        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' };

        Object[] input = new Object[] { strings, ints, longs, doubles, floats, bytes, chars };

        assertThat(LogHelper.toString(input)).isEqualTo("[[0], [1], [2], [3.1], [4.2], [5], [6]]");
    }