*
* @throws NamingException if there are any problems
*/
public void testGetInitialContextLookupAttributesByName() throws NamingException
{
MutableStartupConfiguration cfg = new MutableStartupConfiguration();
cfg.setWorkingDirectory( new File( "target" + File.separator + "server" ) );
Hashtable env = new Hashtable( cfg.toJndiEnvironment() );
env.put( Context.PROVIDER_URL, "" );
env.put( Context.SECURITY_PRINCIPAL, "uid=admin,ou=system" );
env.put( Context.SECURITY_CREDENTIALS, "secret" );
env.put( Context.SECURITY_AUTHENTICATION, "simple" );
env.put( Context.INITIAL_CONTEXT_FACTORY, CoreContextFactory.class.getName() );