\documentclass[a4paper]{article}
\usepackage{color}
\usepackage{framed}

\newenvironment{fr}[1]{%
  \def\FrameCommand{%
    #1
    \fboxsep\FrameSep
    \colorbox{yellow}%
  }%
  \MakeFramed{\FrameRestore}%
}{%
  \endMakeFramed
}

\begin{document}

\begin{fr}{Test 1}
  An alternative to these approaches is the usage of the \textbf{framed}
  environment (you will need to include the \texttt{framed} package to
  use it). This provides an easy way to box a paragraph within a
  document.
\end{fr}

\end{document}
