Separated the common classes that can be used for testing both SP and
IdP.