public static Object newInstance(ClassLoader cl, Class<?>[] interfaces, InvocationHandler handler) {
        return getProxy(cl, interfaces, handler).newInstance();
    }
@Test
    void testNewInstance() throws Throwable {
        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        InvokerInvocationHandler handler = Mockito.mock(InvokerInvocationHandler.class);
        Object proxy = ByteBuddyProxy.newInstance(cl, new Class<?>[] {RemoteService.class}, handler);
        assertInstanceOf(RemoteService.class, proxy);
        assertInstanceOf(Proxy.class, proxy);
        RemoteService remoteService = (RemoteService) proxy;
        remoteService.getThreadName();
        remoteService.sayHello("test");
        Mockito.verify(handler, Mockito.times(2)).invoke(any(), any(), any());
    }