public void testAssociationBehaviour() {
verify(policyComponent).bindAssociationBehaviour(
eq(NodeServicePolicies.OnCreateAssociationPolicy.QNAME),
eq(ContentModel.TYPE_CONTENT),
eq(ContentModel.ASSOC_CONTAINS),
refEq(new JavaBehaviour(associationBehaviourInheritClassAndContain, "onCreateAssociation", Behaviour.NotificationFrequency.FIRST_EVENT),
"proxies", "disabled")
);
verify(policyComponent).bindAssociationBehaviour(
eq(NodeServicePolicies.OnCreateAssociationPolicy.QNAME),
eq(ContentModel.TYPE_FOLDER),
eq(ContentModel.ASSOC_CONTAINS),
refEq(new JavaBehaviour(associationBehaviourContain, "onCreateAssociation", Behaviour.NotificationFrequency.TRANSACTION_COMMIT),
"proxies", "disabled")
);
verify(policyComponent).bindAssociationBehaviour(
eq(NodeServicePolicies.OnCreateAssociationPolicy.QNAME),
eq(associationBehaviourVoid),
refEq(new JavaBehaviour(associationBehaviourVoid, "onCreateAssociation", Behaviour.NotificationFrequency.EVERY_EVENT),
"proxies", "disabled")
);
}