   @Test(expected = CASException.class)
   public void testConfigureException()
         throws CASException, HttpException {

      new Expectations() {
         {
            HttpClientFactory.build((SSLContext) any);
            result = new Exception();
         }
      };
      CASClient.configure(sslContext, casUrl, casUser, casPass);
   }