### Question:
AbstractBaseLauncher implements RunnableLauncher { final InstanceType getType() { if (type == null) { return determineType(commands); } return type; }  final boolean isInitialized(); boolean isRunning();  }### Answer:
@Test public void testGetType() { DummyProcessLauncher launcher; launcher = new DummyProcessLauncher(); assertEquals(launcher.getType(), SELENIUM_STANDALONE); launcher = new DummyProcessLauncher(new String[] { ROLE_ARG, "node" }); assertEquals(launcher.getType(), SELENIUM_NODE); launcher = new DummyProcessLauncher(new String[] { ROLE_ARG, "hub" }); assertEquals(launcher.getType(), SELENIUM_HUB); }