Refined unit tests and made DefaultEndpointResolver use beans rather
than reflection to obtain instances of resource implementations.