assertTrue( entry.isChangeModify() );
assertEquals( values[4][0][1], entry.getDn().getName() );
// "add: postaladdress"
// "postaladdress: 123 Anystreet $ Sunnyvale, CA $ 94086"
Modification item = modifs.get( 0 );
assertEquals( ModificationOperation.ADD_ATTRIBUTE, item.getOperation() );
assertEquals( values[4][1][0], item.getAttribute().getId() );
assertTrue( item.getAttribute().contains( values[4][1][1] ) );
// "delete: description\n" +
item = modifs.get( 1 );
assertEquals( ModificationOperation.REMOVE_ATTRIBUTE, item.getOperation() );
assertEquals( values[4][2][0], item.getAttribute().getId() );
// "replace: telephonenumber"
// "telephonenumber: +1 408 555 1234"
// "telephonenumber: +1 408 555 5678"
item = modifs.get( 2 );
assertEquals( ModificationOperation.REPLACE_ATTRIBUTE, item.getOperation() );
assertEquals( values[4][3][0], item.getAttribute().getId() );
assertTrue( item.getAttribute().contains( values[4][3][1], values[4][3][2] ) );
// "delete: facsimiletelephonenumber"
// "facsimiletelephonenumber: +1 408 555 9876"
item = modifs.get( 3 );
assertEquals( ModificationOperation.REMOVE_ATTRIBUTE, item.getOperation() );
assertEquals( values[4][4][0], item.getAttribute().getId() );
assertTrue( item.getAttribute().contains( values[4][4][1] ) );
// Sixth entry
entry = entries.get( 5 );
modifs = entry.getModifications();
assertTrue( entry.isChangeModify() );
assertEquals( values[5][0][1], entry.getDn().getName() );
// "replace: postaladdress"
item = modifs.get( 0 );
assertEquals( ModificationOperation.REPLACE_ATTRIBUTE, item.getOperation() );
assertEquals( values[5][1][0], item.getAttribute().getId() );
// "delete: description"
item = modifs.get( 1 );
assertEquals( ModificationOperation.REMOVE_ATTRIBUTE, item.getOperation() );
assertEquals( values[5][2][0], item.getAttribute().getId() );
}