Instead of the `try...catch...fail`, can we use `@Test(expected = HttpException)` here?