Wrap the AtomicIntegers with getters, so that access is cleaner and looks nice. Also make them protected, so they don't get accidentally changed.
Remove unused code.
Replace the ugly regex checks with method calls.
Extract the regexes into properties. In the future, if we need to change a regex, we will only have to change it once.
The canned xml and json responses should be replaced with builders, so that we can customize them in tests more easily.
Fix variable names. Make it easier to read.
Merge pull request #919 from izrik/cleanup-mock-identity-service

Cleanup mock identity service