### Question:
VFS { protected static Method getMethod(Class<?> clazz, String methodName, Class<?>... parameterTypes) { if (clazz == null) { return null; } try { return clazz.getMethod(methodName, parameterTypes); } catch (SecurityException e) { log.error("Security exception looking for method " + clazz.getName() + "." + methodName + ". Cause: " + e); return null; } catch (NoSuchMethodException e) { log.error("Method not found " + clazz.getName() + "." + methodName + "." + methodName + ". Cause: " + e); return null; } }  static VFS getInstance(); static void addImplClass(Class<? extends VFS> clazz); abstract boolean isValid(); List<String> list(String path); static final Class<?>[] IMPLEMENTATIONS; static final List<Class<? extends VFS>> USER_IMPLEMENTATIONS; }### Answer:
@Test void getExistMethod() { Method method = VFS.getMethod(VFS.class, "list", String.class); Assertions.assertNotNull(method); }
@Test void getNotExistMethod() { Method method = VFS.getMethod(VFS.class, "listXxx", String.class); Assertions.assertNull(method); }