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