### Question:
CommandExecuter { public HttpResponse execute() { Class<?> clazz; try { clazz = ClassLoadHelper.getClass(commandClass); final Method method = clazz.getDeclaredMethod(commandMethod, new Class[]{HttpRequest.class}); final Object returned = method.invoke(clazz.newInstance(), new Object[]{request}); return returned == null ? new NoCacheHttpResponse() : (HttpResponse) returned; } catch (Exception e) { e.printStackTrace(); logger.warn("commandClass = >" + commandClass + "< commandMethod = >" + commandMethod + "<"); logger.warn(Utils.getStackTraceString(e)); return new NoCacheHttpResponse("SAHI_ERROR"); } } CommandExecuter(String cmd, HttpRequest request, boolean isPro); HttpResponse execute();  }### Answer:
@Test public void testMethodCalled() throws Exception { final HttpRequest httpRequest = null; new CommandExecuter("net.sf.sahi.command.TestClass_act", httpRequest, false).execute(); assertTrue(called); }
@Test public void testMethodCalledWithoutClassFQN() throws Exception { final HttpRequest httpRequest = null; new CommandExecuter("TestClass_act", httpRequest, false).execute(); assertTrue(called); }