### Question:
VarFinder { public static Set<CtMethod> getAccessibleMethods(CtElement el) { return getAccessibleMethods(el, false, true); }  static String createVarName(List<CtVariable> vars); static List<CtVariable> getAccessibleVars(CtElement el); static List<CtVariable> getAccessibleVars(CtElement el, boolean staticContext); static Set<CtVariable> getAccessibleVarsFromBlock(CtElement el); static Set<CtClass> getAccessibleClasses(CtElement el); static Set<CtMethod> getAccessibleMethods(CtElement el); static Set<CtMethod> getAccessibleMethods(CtElement el, boolean acceptStatic, boolean acceptNonStatic); static Set<CtMethod> getInternalMethods(CtElement el, boolean acceptStatic, boolean acceptNonStatic); static boolean notPrimitiveNotAnArray(CtVariable v); static boolean notParametricType(CtMethod m); static Set<CtMethod> getTargetableMethods(CtElement el); static CtVariable getTypedVar(CtType t, List<CtVariable> vars); static CtVariable getTypedVar(CtTypeReference t, List<CtVariable> vars); static CtVariableReference createRef(CtVariable v); static boolean fillParameter(List<CtExpression> paramFillList, CtExecutable exe, List<CtVariable> vars); static boolean fillParameter(List<CtExpression> paramFillList, CtExecutable exe, List<CtVariable> vars, boolean staticCall); static boolean fillParameter(List<CtExpression> paramFillList, CtExecutable exe, List<CtVariable> vars, boolean staticCall, int maxdepth);  }### Answer:
@Test public void getAccessibleMethods() throws Exception { setUp(true, true); List<CtMethod> methods = inputProgram.getAllElement(CtMethod.class); for(CtMethod m : methods) { if((m.getSimpleName().compareTo("main") == 0) && (m.getParent(CtClass.class).getSimpleName().compareTo("App") == 0)) { Set<CtMethod> methodSet = VarFinder.getAccessibleMethods(m.getBody().getLastStatement(), true, false); for(CtMethod method : methodSet) { assertTrue(method.getModifiers().contains(ModifierKind.STATIC)); } assertTrue(methodSet.size() == 5); methodSet = VarFinder.getAccessibleMethods(m.getBody().getLastStatement(), false, true); for(CtMethod method : methodSet) { assertTrue(!method.getModifiers().contains(ModifierKind.STATIC)); } assertTrue(methodSet.size() == 7); assertTrue(VarFinder.getAccessibleMethods(m.getBody().getLastStatement(), true, true).size() == 12); } } }