Anne Hathaway has married her boyfriend of 4 years, Adam Shulman.