ImmutableMap.of("testprop", (Object) new String[]{ "bla", "bleh", }, Constants.SERVICE_PID, "xxx");
TestInterface mockService = mockServiceWithProps(propData);
when(mockService.test(anyInt())).thenReturn(21);
Map<String, String> metaData = ImmutableMap.of("serviceFilter", "(testprop=bla)", "serviceId", "xxx");
MethodCall c = new MethodCall("test", new Object[]{ 42 }, metaData);
MethodResult result = requestHandler.handleCall(c);
verify(mockService).test(42);
assertThat(result.getClassName(), is(Integer.class.getName()));
assertThat((Integer) result.getArg(), is(21));