Instead of try catch here take a look at the other tests that use Assert.Throws. E.g.:

```csharp
Assert.ThrowsArgumentNullException(() => hubConContext.Group(null));
```