Attributes attrs = new BasicAttributes( "objectClass", "person", true );
attrs.put( "sn", "foo" );
attrs.put( "cn", "foo bar" );
ctx.createSubcontext( "cn=foo bar,ou=system", attrs );
assertNotNull( ctx.lookup( "cn=foo bar,ou=system" ) );
// -------------------------------------------------------------------
// do modify and confirm
// -------------------------------------------------------------------