added test to demo java configuration of routes