I would like to define my own theorem and to capture it around a double (or oval) box as it specified in fancybox
package. Here is a MWE
\documentclass{article}
\useackage{amsmath,fancybox}
\newtheorem{test}{Test}
\begin{document}
\doublebox{%
\begin{test}
bla bla bla
\end{test}}
\end{document}
tcolorbox