assertEquals( triggerSpecification.getActionTime(), ActionTime.AFTER );
assertEquals( triggerSpecification.getLdapOperation(), LdapOperation.DELETE );
List<SPSpec> spSpecs = triggerSpecification.getSPSpecs();
assertTrue( spSpecs != null );
assertTrue( spSpecs.size() == 2 );
SPSpec firstSpec = spSpecs.get( 0 );
assertEquals( firstSpec.getName(), "BackupUtilities.backupDeletedEntry" );
assertEquals( firstSpec.getOptions().size(), 0 );
assertEquals( firstSpec.getParameters().size(), 3 );
assertTrue( firstSpec.getParameters().contains(
StoredProcedureParameter.Delete_NAME.instance() ) );
assertTrue( firstSpec.getParameters().contains(
StoredProcedureParameter.Delete_DELETED_ENTRY.instance() ) );
assertTrue( firstSpec.getParameters().contains(
StoredProcedureParameter.Generic_LDAP_CONTEXT.instance( new Dn( "ou=Backup,ou=System" ) ) ) );
SPSpec secondSpec = spSpecs.get( 1 );
assertEquals( secondSpec.getName(), "BackupUtilities.recreateDeletedEntry" );
assertEquals( secondSpec.getOptions().size(), 0 );
assertEquals( secondSpec.getParameters().size(), 2 );
assertTrue( secondSpec.getParameters().contains(
StoredProcedureParameter.Delete_NAME.instance() ) );
assertTrue( secondSpec.getParameters().contains(
StoredProcedureParameter.Delete_DELETED_ENTRY.instance() ) );
}