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"));
}
public static class MyExampleConnector extends ExampleConnector {
private final AtomicReference<Event> eventRef;