integration test for async result in Java

be sure that asynchronous results in java work as expected