AlternateGisFeatureName implements Comparable<AlternateGisFeatureName> { public static AlternateGisFeatureName alternateName(String name) { return new AlternateGisFeatureName(name); } private  AlternateGisFeatureName(String name); private  AlternateGisFeatureName(String name, Iso639Language language, boolean preferred, boolean shortName); static AlternateGisFeatureName alternateName(String name); AlternateGisFeatureName withName(String name); AlternateGisFeatureName withLanguage(Iso639Language language); AlternateGisFeatureName preferred(boolean preferredName); AlternateGisFeatureName shortName(boolean shortName); int compareTo(AlternateGisFeatureName o); String getName(); boolean isPreferred(); boolean isShort(); @Override String toString(); Iso639Language getLanguage(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test(expected=IllegalArgumentException.class) public void shouldNotCreateAlternateGisFeatureNameWithNullName() { alternateName(null); }
@Test(expected=IllegalArgumentException.class) public void shouldNotCreateAlternateGisFeatureNameWithEmptyName() { alternateName(""); }