*/
@Test
public void testConstructorMatchingRules() throws Exception {
AttributeTypeBuilder builder = new AttributeTypeBuilder(
"testType", "1.2.3");
AttributeSyntax syntax = DirectoryServer.getDefaultStringSyntax();
builder.setApproximateMatchingRule(syntax
.getApproximateMatchingRule());
builder.setEqualityMatchingRule(syntax.getEqualityMatchingRule());
builder.setOrderingMatchingRule(syntax.getOrderingMatchingRule());
builder.setSubstringMatchingRule(syntax
.getSubstringMatchingRule());
AttributeType type = builder.getInstance();
Assert.assertEquals(type.getApproximateMatchingRule(), syntax
.getApproximateMatchingRule());
Assert.assertEquals(type.getEqualityMatchingRule(), syntax
.getEqualityMatchingRule());
Assert.assertEquals(type.getOrderingMatchingRule(), syntax
.getOrderingMatchingRule());
Assert.assertEquals(type.getSubstringMatchingRule(), syntax
.getSubstringMatchingRule());
}