public static <T, R> R unaryCall(Invoker<?> invoker, MethodDescriptor methodDescriptor, T request) {
        return (R) call(invoker, methodDescriptor, new Object[] {request});
    }
@Test
    void unaryCall2() {
        when(invoker.invoke(any(Invocation.class)))
                .thenThrow(new RuntimeException("a"))
                .thenThrow(new Error("b"));
        try {
            StubInvocationUtil.unaryCall(invoker, method, request);
            fail();
        } catch (Throwable t) {
            // pass
        }
        try {
            StubInvocationUtil.unaryCall(invoker, method, request);
            fail();
        } catch (Throwable t) {
            // pass
        }
    }