BaseApiMetadata implements ApiMetadata { @Override public String getId() { return id; } protected  BaseApiMetadata(Builder<?> builder); protected  BaseApiMetadata(String id, String name, Set<TypeToken<? extends View>> views, String endpointName, String identityName, // NO_UCD (use private)
            Optional<String> credentialName, String version, Optional<String> buildVersion,
            Optional<String> defaultEndpoint, Optional<String> defaultIdentity, Optional<String> defaultCredential,
            Properties defaultProperties, URI documentation, TypeToken<? extends Context> context,
            Set<Class<? extends Module>> defaultModules); static Properties defaultProperties(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @Override String getId(); @Override String getName(); @Override Set<TypeToken<? extends View>> getViews(); @Override String getEndpointName(); @Override String getIdentityName(); @Override Optional<String> getCredentialName(); @Override String getVersion(); @Override Optional<String> getBuildVersion(); @Override Optional<String> getDefaultEndpoint(); @Override Optional<String> getDefaultIdentity(); @Override Optional<String> getDefaultCredential(); @Override Properties getDefaultProperties(); @Override URI getDocumentation(); @Override TypeToken<? extends Context> getContext(); @Override Set<Class<? extends Module>> getDefaultModules();  }
@Test public void testWithId() { ApiMetadata apiMetadata = Apis.withId(toTest.getId()); assertEquals(toTest, apiMetadata); }