title: Working Java REST Client Example to access CAS REST API
body: <p>I followed <a href="https://wiki.jasig.org/display/casum/restful+api">this</a> tutorial to enable REST service on my local CAS server. </p>
  
  <p>However there is no Java example</p>
  
  <p>"Java REST Client Example</p>
  
  <p>We need a real, working, example, the previous one is useless. Many people are emailing me that it is not working, and I confirm it does not work."</p>
  
  <p>I was able to find <a href="http://www.dzone.com/snippets/cas-restful-java-client">this</a> but that unfortunately did not work for me.</p>
  
  <p>Any pointers/links? Much appreciated.</p>