@Test
public void testGenApiConfig() throws Exception {

  tool.execute(
      new String[]{GenApiConfigAction.NAME, option(EndpointsToolAction.OPTION_CLASS_PATH_SHORT),
      "classPath", option(EndpointsToolAction.OPTION_OUTPUT_DIR_SHORT), "outputDir", "MyService",
      "MyService2"});
  assertFalse(usagePrinted);
  assertThat(Lists.newArrayList(classPath))
      .containsExactly(new File("classPath").toURI().toURL(),
          new File(new File(EndpointsToolAction.DEFAULT_WAR_PATH).getAbsoluteFile(),
              "/WEB-INF/classes")
              .toURI()
              .toURL());
  assertEquals("outputDir", outputDirPath);
  assertEquals(EndpointsToolAction.DEFAULT_WAR_PATH, warPath);
  assertStringsEqual(Arrays.asList("MyService", "MyService2"), serviceClassNames);
  assertTrue(outputToDisk);
}