Add ExpectedException rule