### Question:
Q2 implements FileFilter, Runnable { public String[] getCommandLineArgs() { return args; } Q2(String[] args, BundleContext bundleContext);  Q2();  Q2(String deployDir);  Q2(String[] args); void start(); void stop(); void run(); void shutdown(); boolean running(); boolean ready(); boolean ready(long millis); void shutdown(boolean join); QClassLoader getLoader(); QFactory getFactory(); String[] getCommandLineArgs(); boolean accept(File f); File getDeployDir(); String getWatchServiceClassname(); static Q2 getQ2(); static Q2 getQ2(long timeout); void relax(long sleep); void relax(); Log getLog(); MBeanServer getMBeanServer(); long getUptime(); void displayVersion(); UUID getInstanceId(); static String getVersionString(); void deployElement(Element e, String fileName, boolean encrypt, boolean isTransient); Framework getOSGIFramework(); static void main(String[] args); static String getVersion(); static String getRevision(); static String getBranch(); static String getBuildTimestamp(); static String getRelease(); static String getAppVersionString(); boolean isDisableDynamicClassloader(); static final String DEFAULT_DEPLOY_DIR; static final String JMX_NAME; static final String LOGGER_NAME; static final String REALM; static final String LOGGER_CONFIG; static final String QBEAN_NAME; static final String Q2_CLASS_LOADER; static final String DUPLICATE_EXTENSION; static final String ERROR_EXTENSION; static final String ENV_EXTENSION; static final String LICENSEE; static final byte[] PUBKEYHASH; static final String PROTECTED_QBEAN; static final int SCAN_INTERVAL; static final long SHUTDOWN_TIMEOUT; }### Answer:
@Test public void testGetCommandLineArgs() throws Throwable { String[] args = new String[1]; args[0] = "testString"; Q2 q2 = new Q2(args); String[] result = q2.getCommandLineArgs(); assertSame(args, result, "result"); assertEquals("testString", args[0], "m_args[0]"); q2.stop(); }