You don't need to. If your method throws an exception, the test will fail, which is what you want.
In this case, it's acceptable to have your test declaring throws Exception:
@Test public void testMe() throws Exception {
x.foo();
}
This means (to me) that you're not expecting any exceptions.