DefaultServiceInstance implements ServiceInstance { @Override public Map<String, String> getMetadata() { return metadata; } DefaultServiceInstance();  DefaultServiceInstance(String id, String serviceName, String host, Integer port);  DefaultServiceInstance(String serviceName, String host, Integer port); void setId(String id); void setServiceName(String serviceName); void setHost(String host); @Override String getId(); @Override String getServiceName(); @Override String getHost(); void setPort(Integer port); @Override Integer getPort(); @Override String getAddress(); @Override boolean isEnabled(); void setEnabled(boolean enabled); @Override boolean isHealthy(); void setHealthy(boolean healthy); @Override Map<String, String> getMetadata(); @Override Map<String, String> getExtendParams(); @Override Map<String, String> getAllParams(); void setMetadata(Map<String, String> metadata); MetadataInfo getServiceMetadata(); void setServiceMetadata(MetadataInfo serviceMetadata); @Override InstanceAddressURL toURL(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testGetMetadata() { assertNotNull(instance.getMetadata(METADATA_SERVICE_URLS_PROPERTY_NAME)); assertNotNull(instance.getMetadata(METADATA_SERVICE_URL_PARAMS_PROPERTY_NAME)); }