AxisMapping { public int getRasterCount() { return getDataSourceCount(rasterMap); }  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 testGetRasterCount() throws Exception { final int rasterCount = axisMapping.getRasterCount(); axisMapping.addRasterName("alias", "raster1"); axisMapping.addRasterName("alias", "raster2"); axisMapping.addRasterName("alias1", "raster1_1"); axisMapping.addRasterName("alias1", "raster2"); final int rasterCount2 = axisMapping.getRasterCount(); assertEquals(0, rasterCount); assertEquals(4, rasterCount2); }