assertTrue( entry.hasControls() );
assertEquals( 6, entry.getControls().size() );
// First control
LdifControl control = entry.getControl( "1.1.1" );
assertEquals( "1.1.1", control.getOid() );
assertFalse( control.isCritical() );
assertNull( control.getValue() );
// Second control
control = entry.getControl( "1.1.2" );
assertEquals( "1.1.2", control.getOid() );
assertTrue( control.isCritical() );
assertNull( control.getValue() );
// Third control
control = entry.getControl( "1.1.3" );
assertEquals( "1.1.3", control.getOid() );
assertFalse( control.isCritical() );
assertEquals( "ABCDEF", Strings.utf8ToString( control.getValue() ) );
// Forth control
control = entry.getControl( "1.1.4" );
assertEquals( "1.1.4", control.getOid() );
assertTrue( control.isCritical() );
assertEquals( "ABCDEF", Strings.utf8ToString( control.getValue() ) );
// Fifth control
control = entry.getControl( "1.1.5" );
assertEquals( "1.1.5", control.getOid() );
assertFalse( control.isCritical() );
assertEquals( "Emmanuel L\u00e9charny", Strings.utf8ToString( control.getValue() ) );
// Sixth control
control = entry.getControl( "1.1.6" );
assertEquals( "1.1.6", control.getOid() );
assertTrue( control.isCritical() );
assertEquals( "Emmanuel L\u00e9charny", Strings.utf8ToString( control.getValue() ) );
}