public <T> T create(Class<T> clazz) {
        return create(clazz, new Class<?>[]{}, new Object[]{});
    }
@Test
    void testProxyHandlesErrors() {
        assertThatIllegalStateException().isThrownBy(()->
            new UnitOfWorkAwareProxyFactory("default", sessionFactory)
                .create(BrokenAuthenticator.class)
                .authenticate("b812ae4"))
            .withMessage("Session cluster is down");
    }