```scala
intercept [JobSubmissionException] {
  Await.result(f1)
}
```

or

```scala
an [JobSubmissionException] should be thrownBy Await.result(f1)
```