There are several highly-rated textbooks and training programs designed to mirror the actual exam conditions:
Effective preparation for the (Test of German as a Foreign Language) requires a combination of language skill development (levels B2 to C1) and intensive training in the specific exam format. Essential Preparation Materials