AxisMapping { public void removeAlias(String alias) { insituMap.remove(alias); rasterMap.remove(alias); fireEvent(); }  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 testRemoveAlias() throws Exception { final String alias = "chl"; axisMapping.addInsituName(alias, "chl_1"); axisMapping.addInsituName(alias, "chl2"); axisMapping.addRasterName(alias, "chl_a"); axisMapping.addRasterName(alias, "chl_b"); axisMapping.removeAlias(alias); assertTrue(axisMapping.getInsituNames(alias).isEmpty()); assertTrue(axisMapping.getRasterNames(alias).isEmpty()); }