You should take it the summer between junior and senior years, or the November at the start of your senior year.
I'd recommend the summer between your junior and senior years - the June test will give you ample notice of your score before you start submitting apps, so you'll know where you're most competitive, and it gives you the opportunity to re-take in November if necessary. But, you don't have the summer to prepare like you would in November.