Map<String, Object> properties = new HashMap<String, Object>();
attributes.put("mixin.1", EventSupport.class.getName());
remoteConnector.start(new MyExampleConnector(eventRef),
new ConnectorDescription("example", "external-connector-proxy", attributes, properties));
WorkflowService workflowService = getOsgiService(WorkflowService.class);
Event event = new Event("test");
ContextHolder.get().setCurrentContextId("foo");
authenticateAsAdmin();
workflowService.processEvent(event);
assertThat(eventRef.get().getName(), equalTo("test"));
}