Apis { public static Iterable<ApiMetadata> all() { return ImmutableSet.<ApiMetadata>builder() .addAll(fromServiceLoader()) .addAll(ApiRegistry.fromRegistry()).build(); }  static Function<ApiMetadata, String> idFunction(); static Iterable<ApiMetadata> all(); static ApiMetadata withId(String id); static Iterable<ApiMetadata> contextAssignableFrom(TypeToken<?> type); static Iterable<ApiMetadata> viewableAs(TypeToken<? extends View> type); static Iterable<ApiMetadata> viewableAs(Class<? extends View> type); static TypeToken<?> findView(final ApiMetadata apiMetadata, final TypeToken<?> view);  }
@Test public void testAll() { Iterable<ApiMetadata> apisMetadata = Apis.all(); for (ApiMetadata apiMetadata : apisMetadata) { if (apiMetadata.getName().equals(testBlobstoreApi.getName())) { assertEquals(testBlobstoreApi, apiMetadata); } else if (apiMetadata.getName().equals(testComputeApi.getName())) { assertEquals(testComputeApi, apiMetadata); } else { assertEquals(testYetAnotherComputeApi, apiMetadata); } } }