I have to test a func() which throws a Exception.

The Constructor of Exception is like this:

```
Exception(){
var a = ContextHolder.get("Domain");
setDomain(a);
}

```

now when the function is throwing the Exception what i am doing:

```
try{
fun();
}
catch(Exception e){

}

```

but it shows an AssertionError that unexpected call get("Domain") which is inside Exception constructor.

Is there any way to verify that exception.