An InitialContextFactory that provides a singleton JNDI naming context. Because it is a singleton, it
is useful in unit tests that looks up objects where it can be used within service registration
logic while also being easily accessible in the test case itself.

For example, the following code sample shows how this InitialContextFactory implementation can be specified via the standard "
java.naming.factory.initial" property: