@Test
public void testGenerateConfigRetainsOrder() throws Exception {

  @Api(name = "onetoday", description = "OneToday API")
  final class OneToday {
  }
  @Api(name = "onetodayadmin", description = "One Today Admin API")
  final class OneTodayAdmin {
  }
  Map<String, String> configs = g.generateConfig(OneToday.class, OneTodayAdmin.class);
  Iterator<String> iterator = configs.keySet().iterator();
  assertEquals("onetoday-v1.api", iterator.next());
  assertEquals("onetodayadmin-v1.api", iterator.next());
}