properties.put("foo", "bar");
ConnectorDescription connectorDescription = new ConnectorDescription("test", "testc", attributes, properties);
connectorManager.create(connectorDescription);
NullDomain service = (NullDomain) serviceUtils.getService("(foo=bar)", 100L);
DummyModel dummyModel = new DummyModel();
dummyModel.setId("42");
dummyModel.setValue("foo");
NullModel nullModel = new NullModel();
nullModel.setId(42);
nullModel.setValue("foo");
when(transformationEngine.performTransformation(
any(ModelDescription.class), any(ModelDescription.class), eq(dummyModel)))
.thenReturn(nullModel);
service.commitModel(dummyModel);
verify(mockedConnector).commitModel(nullModel);
}