title: Corda - How do you implement expectEvents parallel predicates using Java
body: <p>I'm looking for a Java example similar to the Kotlin code shown in the following example (taken from the Corda integration testing tutorial at: <a href="https://docs.corda.net/releases/release-M6.0/tutorial-integration-testing.html" rel="nofollow noreferrer">https://docs.corda.net/releases/release-M6.0/tutorial-integration-testing.html</a>)</p>
  
  <pre><code>bobVaultUpdates.expectEvents {
       parallel(
           (1 .. 10).map { i -&gt;
               expect(
                   match = { update: Vault.Update -&gt;
                                      (update.produced.first().state.data as Cash.State).amount.quantity == i * 100L
                   }
               ) { update -&gt;
                   println("Bob vault update of $update")
               }
           }
       )
  }
  </code></pre>
  
  <p>I'm also curious if this technique is still recommended, as it seems to have been removed from the latest version of this tutorial (<a href="https://docs.corda.net/releases/release-V4.3/tutorial-integration-testing.html" rel="nofollow noreferrer">https://docs.corda.net/releases/release-V4.3/tutorial-integration-testing.html</a>).</p>