attributes.put( "fullyQualifiedJavaClassName", "HelloWorld" );
attributes.put( "javaClassByteCode", HELLOWORLD_CLASS_BYTES );
defaultContext.createSubcontext( "fullyQualifiedJavaClassName=HelloWorld", attributes );
// assert set up successfull
assertNotNull( defaultContext.lookup( "fullyQualifiedJavaClassName=HelloWorld" ) );
// load the class
LdapClassLoader loader = new LdapClassLoader( getService() );
Class<?> clazz = loader.loadClass( "HelloWorld" );