@Test
public void testCallByServiceId_shouldCallService() throws Exception {

    TestInterface mockService = mockService(TestInterface.class, "testid");
    when(mockService.test(anyInt())).thenReturn(21);
    Map<String, String> metaData = ImmutableMap.of("serviceId", "testid");
    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));
}