Added ICATCredentials factory method that takes an InputStream. Modified unit test  so it will run on bamboo.