### Question:
MyService { @Async public void doSomethingAsync(@NotNull @Valid final MyBean bean) { System.out.println("do something async"); }  void doSomething(@NotNull @Valid final MyBean bean); @Async void doSomethingAsync(@NotNull @Valid final MyBean bean);  }### Answer:
@Test(expected = ConstraintViolationException.class) public void exceptionWhenBeanIsNullAsync() { this.service.doSomethingAsync(null); }
@Test(expected = ConstraintViolationException.class) public void exceptionWhenBeanIsInvalidAsync() { this.service.doSomethingAsync(new MyBean()); }