How can I show my chapter's titles, using book class, to be like this:
I've been using titlesec and anyfontsize package for its spacing and sizing with the following code:
\titleformat{\chapter}[block]
{\normalfont\fontsize{25}{17}\selectfont\bfseries}{\thechapter}{.5cm}{\fontsize{21}{17}\selectfont}
\titlespacing*{\chapter}{2cm}{1.4cm}{4cm}
But haven't got any idea on how to make that bar separation.
Addition from Manuel Kuehner (added a MWE)
\documentclass{book}
\usepackage{titlesec}
\titleformat{\chapter}[block]
{\normalfont\fontsize{25}{17}\selectfont\bfseries}{\thechapter}{.5cm}{\fontsize{21}{17}\selectfont}
\titlespacing*{\chapter}{2cm}{1.4cm}{4cm}
\begin{document}
\chapter{Test Chapter}
\end{document}

