### Question:
AbstractBaseLauncher implements RunnableLauncher { final List<String> getCommands() { return commands; }  final boolean isInitialized(); boolean isRunning();  }### Answer:
@Test public void testGetCommands() { DummyProcessLauncher launcher; launcher = new DummyProcessLauncher(); assertTrue(launcher.getCommands().isEmpty()); launcher = new DummyProcessLauncher(new String[] { "-foo", "bar", "-bar", "baz" }); assertEquals(launcher.getCommands().size(), 4); assertTrue(launcher.getCommands().contains("-foo")); }