Testing routes defined in Java