when(factory.getValidationErrors(any(Connector.class), anyMap())).thenReturn(errorMessages);
Map<String, String> attributes = new HashMap<String, String>();
Map<String, Object> properties = new Hashtable<String, Object>();
properties.put("foo", "bar");
ConnectorDescription connectorDescription = new ConnectorDescription("test", "testc", attributes, properties);
String connectorId = connectorManager.create(connectorDescription);
serviceUtils.getService("(foo=bar)", 1L);
connectorDescription.getProperties().put("foo", "42");
connectorManager.forceUpdate(connectorId, connectorDescription);
try {
serviceUtils.getService("(foo=bar)", 1L);
fail("Service is only available with the old attributes");