### Question:
MethodInfo { Object getInstance() { return instance; } private  MethodInfo(Method method, Object instance);   }### Answer:
@Test public void getInstance() throws Exception { class MyConfig { @Title("title") @Spinner({"one"}) public void foo() { } } Object instance = new MyConfig(); Method[] methods = instance.getClass().getDeclaredMethods(); MethodInfo methodInfo = MethodInfo.newInstance(methods[0], instance); assertThat(methodInfo.getInstance()).isEqualTo(instance); }