### Question:
MethodInfo { Object getData() { return data; } private  MethodInfo(Method method, Object instance);   }### Answer:
@Test public void getData() throws Exception { class MyConfig { @Title("Reset") @Spinner({"one"}) public void foo() { } } Object instance = new MyConfig(); Method[] methods = instance.getClass().getDeclaredMethods(); MethodInfo methodInfo = MethodInfo.newInstance(methods[0], instance); assertThat(methodInfo.getData()).isNotNull(); assertThat(methodInfo.getData()).isInstanceOf(String[].class); String[] values = (String[]) methodInfo.getData(); assertThat(values).hasSize(1); assertThat(values[0]).isEqualTo("one"); }