P.S. assertThrown can be used here.

```
assertThrown(Base64.decode("Zg");
```