// no need to reset the mock for this...
props.put(EndpointListener.ENDPOINT_LISTENER_SCOPE, "(|(objectClass=org.example.ClassA)(objectClass=org.example.ClassB))");
EasyMock.reset(el);
final Set<String> actualEndpoints = new HashSet<String>();
el.endpointAdded((EndpointDescription) EasyMock.anyObject(),
EasyMock.eq("(|(objectClass=org.example.ClassA)(objectClass=org.example.ClassB))"));
EasyMock.expectLastCall().andAnswer(new IAnswer<Object>() {
public Object answer() throws Throwable {
EndpointDescription ed = (EndpointDescription) EasyMock.getCurrentArguments()[0];
actualEndpoints.addAll(ed.getInterfaces());