Map<String, String> metaData = Maps.newHashMap(ImmutableMap.of("serviceId", "test"));
MethodCall methodCall = new MethodCall("method", new Object[]{ "123", 5, new TestClass("test"), }, metaData);
call = new MethodCallMessage(methodCall, "123");
call.setDestination("host?receive");
MethodResult result = new MethodResult(new TestClass("test"));
result.setMetaData(metaData);
methodReturn = new MethodResultMessage(result, "123");
Dictionary<String, Object> props = new Hashtable<String, Object>();
props.put(Constants.PROVIDED_CLASSES_KEY, Password.class.getName());
props.put(Constants.DELEGATION_CONTEXT_KEY, org.openengsb.core.api.Constants.DELEGATION_CONTEXT_CREDENTIALS);
registerService(new ClassProviderImpl(bundle, Sets.newHashSet(Password.class.getName())), props,