Baloney. Germany wanted to go to war and used the assassination as a provocation.
You need to re-check the timelines. Germany did not mobilize until after Russia began to mobilize (which in turn was after Austria-Hungary declared war on Serbia.)