JcloudsProviderAndApiLoader { public static Optional<ApiMetadata> getApi(String id) { id = DeserializingJcloudsRenamesProvider.INSTANCE.applyJcloudsRenames(id); if (LazyServiceLoader.INSTANCE.apis.containsKey(id)) { return Optional.of(LazyServiceLoader.INSTANCE.apis.get(id)); } return Iterables.tryFind(ApiRegistry.fromRegistry(), ApiPredicates.id(id)); }  static boolean isProvider(String id); static boolean isApi(String id); static Optional<ProviderMetadata> getProvider(String id); static Optional<ApiMetadata> getApi(String id); static final Logger log; }
@Test public void testGetApi() throws Exception { assertIsApi("ec2"); }