AxisMapping { public Set<String> getAliasNames() { final Set<String> names = new TreeSet<String>(); names.addAll(insituMap.keySet()); names.addAll(rasterMap.keySet()); return names; }  List<String> getInsituNames(String alias); List<String> getRasterNames(String alias); void addRasterName(String alias, String rasterName); void addInsituName(String alias, String insituName); void removeAlias(String alias); void addAlias(String alias); void removeInsituName(String alias, String insituName); void removeRasterName(String alias, String rasterName); Set<String> getAliasNames(); void replaceAlias(String beforeName, String changedName); String getRasterAlias(String rasterName); String getInsituAlias(String insituName); void addAxisMappingListener(AxisMappingListener axisMappingListener); int getRasterCount(); int getInsituCount();  }
@Test public void testGetAliasNames() throws Exception { axisMapping.addRasterName("ra", "rn"); axisMapping.addInsituName("ia", "in"); final Set<String> names = axisMapping.getAliasNames(); assertTrue(names instanceof SortedSet); final HashSet<String> expectedNames = new HashSet<String>(); expectedNames.add("ra"); expectedNames.add("ia"); assertEquals(expectedNames, names); }