public void testCreateConnectorWithSkipDomainType_shouldNotInvokeSetDomainType() throws Exception {
Map<String, String> attributes = new HashMap<String, String>();
attributes.put(Constants.SKIP_SET_DOMAIN_TYPE, "true");
Map<String, Object> properties = new Hashtable<String, Object>();
properties.put("foo", "bar");
NullDomainImpl mock2 = mock(NullDomainImpl.class);
when(factory.createNewInstance(anyString())).thenReturn(mock2);
ConnectorDescription connectorDescription = new ConnectorDescription("test", "testc", attributes, properties);
connectorManager.create(connectorDescription);
verify(mock2, never()).setDomainId(anyString());
verify(mock2, never()).setConnectorId(anyString());