* Test constructor DefaultServerAttribute( String, AttributeType, Value... )
*/
@Test
public void testDefaultServerAttributeStringAttributeTypeValueArray()
{
EntryAttribute attr1 = new DefaultServerAttribute( "cn", atCN, STR_VALUE1, STR_VALUE2, NULL_STRING_VALUE );
assertTrue( attr1.isHR() );
assertEquals( 3, attr1.size() );
assertEquals( "cn", attr1.getId() );
assertEquals( "cn", attr1.getUpId() );
assertEquals( atCN, attr1.getAttributeType() );
assertTrue( attr1.contains( "a", "b" ) );
assertTrue( attr1.contains( NULL_STRING_VALUE ) );
EntryAttribute attr2 = new DefaultServerAttribute( atCN, STR_VALUE1, BIN_VALUE2, NULL_STRING_VALUE );
assertTrue( attr2.isHR() );
assertEquals( 2, attr2.size() );
assertEquals( "cn", attr2.getId() );
assertEquals( "cn", attr2.getUpId() );
assertEquals( atCN, attr2.getAttributeType() );
assertTrue( attr2.contains( "a" ) );
assertTrue( attr2.contains( NULL_STRING_VALUE ) );
EntryAttribute attr3 = new DefaultServerAttribute( "CommonName", atCN, STR_VALUE1, STR_VALUE2, NULL_STRING_VALUE );
assertTrue( attr3.isHR() );
assertEquals( 3, attr3.size() );
assertEquals( "commonname", attr3.getId() );
assertEquals( "CommonName", attr3.getUpId() );
assertEquals( atCN, attr3.getAttributeType() );
assertTrue( attr3.contains( "a", "b" ) );
assertTrue( attr3.contains( NULL_STRING_VALUE ) );
EntryAttribute attr4 = new DefaultServerAttribute( " 2.5.4.3 ", atCN, STR_VALUE1, STR_VALUE2, NULL_STRING_VALUE );
assertTrue( attr4.isHR() );
assertEquals( 3, attr4.size() );
assertEquals( "2.5.4.3", attr4.getId() );
assertEquals( " 2.5.4.3 ", attr4.getUpId() );
assertEquals( atCN, attr4.getAttributeType() );
assertTrue( attr4.contains( "a", "b" ) );
assertTrue( attr4.contains( NULL_STRING_VALUE ) );
}