title: Cannot trigger an exception within an lambda expression
body: <p>I am somewhat new to Java 8 and am trying to throw a an exception within an lambda expression as following: if subQty is less than min or greater than max, in this case, my unit test calculated min/max to be 182 and 255, and I am submitting a subQty of 10, therefore it should raise an exception and fail this unit test. However, I am keep getting the green light why is that?</p>
  
  <pre><code>public void verifyingIndividualSubmissionValueLimits(String alias, double min, double max)
      // ... some code here ...
  
      // Get local stock price
      CompletableFuture&lt;Double&gt; localPriceFuture = instrumentRequester.getMidPrice(instId);
  
      // Calculate the min and max quantity
      localPriceFuture.thenAcceptBoth(dollarFxRateFuture,
              (localPrice, fxRate) -&gt; {
                  double minLocalValue = min * fxRate;
                  double maxLocalValue = max * fxRate;
                  long minQuantity = Math.round(minLocalValue / localPrice);
                  long maxQuantity = Math.round(maxLocalValue / localPrice);
                  if (subQty &lt; minQuantity || subQty &gt; maxQuantity) {
                      log.debug("We should throw an exception because subQty is {}", subQty);
                      throw new SubmissionValidationException(String.format("Quantity: %s, is not within %s and %s", subQty, minQuantity, maxQuantity));
                  }
              }
      );
  }
  </code></pre>