AbstractLocation extends AbstractBrooklynObject implements LocationInternal, HasHostGeoInfo, Configurable { @Override public String getDisplayName() { return name.get(); } AbstractLocation();  AbstractLocation(Map<?,?> properties); @Override void setManagementContext(ManagementContextInternal managementContext); @SuppressWarnings("serial") @Override @Deprecated AbstractLocation configure(Map<?,?> properties); boolean isManaged(); void onManagementStarted(); void onManagementStopped(); @Override String getDisplayName(); @Override Location getParent(); @Override Collection<Location> getChildren(); @Override void setParent(Location newParent); void setParent(Location newParent, boolean updateChildListParents); @Override ConfigurationSupportInternal config(); @Override @Beta BasicSubscriptionSupport subscriptions(); @Override T getConfig(HasConfigKey<T> key); @Override T getConfig(ConfigKey<T> key); @Override void setDisplayName(String newName); @Override boolean equals(Object o); @Override int hashCode(); @Override boolean containsLocation(Location potentialDescendent); @SuppressWarnings("deprecation") void addChild(Location child); boolean removeChild(Location child); @Override void init(); @Override void rebind(); @Override String toString(); @Override String toVerboseString(); @Override HostGeoInfo getHostGeoInfo(); void setHostGeoInfo(HostGeoInfo hostGeoInfo); @Override RebindSupport<LocationMemento> getRebindSupport(); LocationDynamicType getLocationTypeInternal(); @SuppressWarnings("unchecked") @Override RelationSupportInternal<Location> relations(); @Override boolean hasExtension(Class<?> extensionType); @Override @SuppressWarnings("unchecked") T getExtension(Class<T> extensionType); @Override void addExtension(Class<T> extensionType, T extension); @Override Map<String, String> toMetadataRecord(); static final ConfigKey<Location> PARENT_LOCATION; static final ConfigKey<Boolean> TEMPORARY_LOCATION; }
@Test public void queryingNameReturnsNameGivenInConstructor() { String name = "Outer Mongolia"; Location location = createConcrete(MutableMap.of("name", "Outer Mongolia")); assertEquals(location.getDisplayName(), name);; }