Writing Controller Test similar to Spring Mockmvcbuilder controller tests

Hi can some one please post example of how to write controller test without calling the methods directly. In a way that can test mapping in routes file

Something similar to how Spring mockmvc builder works http://zetcode.com/spring/mockmvc/