acceptors.add(new MockConfigurableAcceptor("test1", 1));
List<Action> actions = new ArrayList<Action>();
actions.add(new MockConfigurableAction("test1", 1));
ConnectorService connectorService = mockConnectorService("test", 1000, new MockConfigurableConnector("test", 0),
acceptors, actions, actions, actions);
ConfigDelegator delegator = mock(ConfigDelegator.class);
when(delegator.getConnectors())
.thenReturn(Collections.singletonList(connectorService));