@Test
public void testInvokeThrowsRpcException2() {

    URL url = URL.valueOf("remote://1.2.3.4/" + String.class.getName());
    url = url.addParameter(MOCK_KEY, "fail");
    MockInvoker mockInvoker = new MockInvoker(url, String.class);
    RpcInvocation invocation = new RpcInvocation();
    invocation.setMethodName("getSomething");
    Assertions.assertThrows(RpcException.class,
            () -> mockInvoker.invoke(invocation));
}