Extension methods to help with Windsor testing. Modified from the ones in the Windsor docs.