    @Test
    void should_return_methods_when_called_with_object() {

        Method getter = ClassUtils.getReferencedMethod(Sample.class, Sample::getProperty);
        assertThat(getter.getDeclaringClass()).isEqualTo(Sample.class);
        assertThat(getter.getName()).isEqualTo("getProperty");

        Method setter = ClassUtils.getReferencedMethod(Sample.class, Sample::setProperty);
        assertThat(setter.getDeclaringClass()).isEqualTo(Sample.class);
        assertThat(setter.getName()).isEqualTo("setProperty");
    }