Java: Add test helper routeAsync to return Promise<Result>

Signed-off-by: Markus Jura <markus.jura@gmail.com>
Fix NPE caused by Java test helper routeAsync changes
Merge pull request #2731 from richdougherty/java-test-async

Java: Add test helper routeAsync to return Promise<Result> (fixup)