* @throws Exception
* If an unexpected error occurred.
*/
@Test(expectedExceptions=OperationRejectedException.class)
public void testRemoveConstraintFail() throws Exception {
Constraint constraint = new MockConstraint(true, true, false);
TestCfg.addConstraint(constraint);
try {
DeleteSubtreeMockLDAPConnection c = new DeleteSubtreeMockLDAPConnection(
"cn=test child 1,cn=test children,cn=test parent 1,cn=test parents,cn=config");