Using X(3823)→J/ψπ+π− to identify coupled-channel effects