ReflectionMethodInvoker { public boolean isInitialized() { return targetMethod != null; } ReflectionMethodInvoker(Class<T> clazz,
                                   Class<R> returnType,
                                   String methodName,
                                   Class<?>... parameterTypes); R invoke(T obj, Object... args); void initialize(); boolean isInitialized();  }
@Test public void isInitialized_methodFoundAndNotInitialized_returnsFalse() throws Exception { ReflectionMethodInvoker<String, Integer> invoker = new ReflectionMethodInvoker<String, Integer>(String.class, Integer.class, "indexOf", String.class, int.class); assertThat(invoker.isInitialized(), is(false)); }