assertTrue( true );
}
// Add a single value
atCN = schemaManager.lookupAttributeTypeRegistry( "cn" );
Value<?> ssv = new StringValue( atCN, "test" );
entry.put( atCN, ssv );
assertEquals( 2, entry.size() );
assertEquals( "cn", entry.get( atCN ).getUpId() );
assertEquals( 1, entry.get( atCN ).size() );
assertEquals( "test", entry.get( atCN ).get().getString() );
// Add more than one value
entry.put( atCN, new StringValue( atCN, "test1" ), new StringValue( atCN, "test2" ), new StringValue( atCN,
"test3" ) );
assertEquals( 2, entry.size() );
assertEquals( "cn", entry.get( atCN ).getUpId() );
assertEquals( 3, entry.get( atCN ).size() );
assertTrue( entry.contains( "cn", "test1" ) );
assertTrue( entry.contains( "cn", "test2" ) );
assertTrue( entry.contains( "cn", "test3" ) );
// Add twice the same value
Attribute sa = entry.put( atCN, new StringValue( atCN, "test1" ), new StringValue( atCN, "test2" ),
new StringValue( atCN, "test1" ) );
assertEquals( 3, sa.size() );
assertTrue( sa.contains( "test1", "test2", "test3" ) );
assertEquals( 2, entry.size() );
assertEquals( "cn", entry.get( atCN ).getUpId() );