### Question:
MethodInfo { String getTitle() { return title; } private  MethodInfo(Method method, Object instance);   }### Answer:
@Test public void getTitle() 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.getTitle()).isEqualTo("title"); }