    @Test
    public void methodTest() {

        MyObject object = new MyObject();
        Value<Object> value = Reflections.invoke(object, "foo");
        Assert.assertTrue(value.isPresent());
        Assert.assertEquals(object.foo(), value.get());
        Assert.assertEquals("foo", Reflections.invoke(MyObject.class, "bar").get());
    }