Added test for JavaAsync doc's controller method signature

This improves the testing I added in #1798 by including it in the documentation tests.