@Override
    public <T> void register(Class<T> remoteInterface, T object) {
        register(remoteInterface, object, 1);
    }
@Test
    public void testTimeout() {
        Assertions.assertThrows(RemoteServiceTimeoutException.class, () -> {
            RedissonClient r1 = createInstance();
            r1.getRemoteService().register(RemoteInterface.class, new RemoteImpl());
            
            RedissonClient r2 = createInstance();
            RemoteInterface ri = r2.getRemoteService().get(RemoteInterface.class, 1, TimeUnit.SECONDS);
            
            try {
                ri.timeoutMethod();
            } finally {
                r1.shutdown();
                r2.shutdown();
            }
        });
    }