Using this answer, I can justify text in block environments globally. However, if I replace the block environment by an example environment, the above solution doesn't work:
\documentclass{beamer}
\usepackage{ragged2e} %new code
\usetheme{default}
\addtobeamertemplate{example begin}{}{\justifying} %new code
\begin{document}
\begin{frame}{Test}
\begin{example}
The brown fox jumped over the lazy dog. The brown fox jumped over
the lazy dog. The brown fox jumped over the lazy dog. The brown
fox jumped over the lazy dog. The brown fox jumped over the lazy
dog. The brown fox jumped over the lazy dog. The brown fox jumped
over the lazy dog. The brown fox jumped over the lazy dog. The
brown fox jumped over the lazy dog. The brown fox jumped over the
lazy dog. The brown fox jumped over the lazy dog.
\end{example}
\end{frame}
\end{document}
How can I justify text in the example environment globally?
Version: Beamer 3.55 from TeX Live 2018.

