Alfred will attend a violin examiination tomorrow afternoon.
The above sentence is gramatically correct.
If the sentence is written as "Alfred will attend an examination of violin tomorrow afternoon.", there is an ambiguity in that your audience may interprete it as you will check the violin tomorrow.