*/
@Test
public void testOc() throws ParseException, LdapException
{
String value = null;
NameForm nf = null;
// numeric oid
value = "( 1.1 MUST m OC 1.2.3.4.5.6.7.8.9.0 )";
nf = parser.parseNameFormDescription( value );
assertEquals( "1.2.3.4.5.6.7.8.9.0", nf.getStructuralObjectClassOid() );
// numeric oid
value = "( 1.1 MUST m OC 123.4567.890 )";
nf = parser.parseNameFormDescription( value );
assertEquals( "123.4567.890", nf.getStructuralObjectClassOid() );
// descr
value = "( 1.1 MUST m OC abcdefghijklmnopqrstuvwxyz-ABCDEFGHIJKLMNOPQRSTUVWXYZ-0123456789 )";
nf = parser.parseNameFormDescription( value );
assertEquals( "abcdefghijklmnopqrstuvwxyz-ABCDEFGHIJKLMNOPQRSTUVWXYZ-0123456789", nf
.getStructuralObjectClassOid() );
// quoted value
value = "( 1.1 MUST m OC '1.2.3.4.5.6.7.8.9.0' )";
nf = parser.parseNameFormDescription( value );
assertEquals( "1.2.3.4.5.6.7.8.9.0", nf.getStructuralObjectClassOid() );
// quoted value
value = "( 1.1 MUST m OC 'test' )";
nf = parser.parseNameFormDescription( value );
assertEquals( "test", nf.getStructuralObjectClassOid() );
// invalid character
value = "( 1.1 MUST m OC 1.2.3.4.A )";
try
{