You could use the SAML high-level API ExampleIdentityProvider project to test your service provider.
Are you looking to support some sort of automated testing?
This can be done using mock objects for the HTTP context, request and response. However, you cannot use a static SAML response/assertion as this will fail the time period check. You would need to construct a SAML assertion and response through our API.
The simplest approach is to test using the ExampleIdentityProvider.