Do energy drinks affect your test outcome?

Asking for my housemate. I'd appreciate some help! Thanks :)