In hopes of (something)

Expecting something.

I wrote the entrance exam in hopes of entering my favorite university.