//	@Test
  public void testGetMapUrl() {
    initialize(); // No Spring in a GWT unit test.
    Bbox bounds = new Bbox(0, 1, 100, 100);
    String getMapUrl = wmsService.getMapUrl(wmsConfig, VALUE_CRS2, bounds, VALUE_SIZE, VALUE_SIZE);

    Assert.equals(VALUE_URL, getMapUrl.substring(0, getMapUrl.indexOf('?')));
    //		assertTrue(hasParameter(getMapUrl, "service", "WMS"));
    //		assertTrue(hasParameter(getMapUrl, "layers", wmsConfig.getLayers()));
    //		assertTrue(hasParameter(getMapUrl, "width", VALUE_SIZE + ""));
    //		assertTrue(hasParameter(getMapUrl, "height", VALUE_SIZE + ""));
    //		assertTrue(hasParameter(getMapUrl, "bbox", "0.0,1.0,100.0,101.0"));
    //		assertTrue(hasParameter(getMapUrl, "format", wmsConfig.getFormat()));
    //		assertTrue(hasParameter(getMapUrl, "version", wmsConfig.getVersion().toString()));
    //		assertTrue(hasParameter(getMapUrl, "crs", VALUE_CRS2));
    //		assertTrue(hasParameter(getMapUrl, "styles", wmsConfig.getStyles()));
    //		assertTrue(hasParameter(getMapUrl, "transparent", wmsConfig.isTransparent() + ""));
    //		assertTrue(hasParameter(getMapUrl, "request", "GetMap"));
  }
 private double findBinCenterX(int xIndex) {
   double xBinCenter = xMin + ((xIndex + .5) / noOfXbins) * (xMax - xMin);
   Assert.equals(mapXCoordToBin(xBinCenter), xIndex);
   return xBinCenter;
 }
 private double findBinCenterY(int yIndex) {
   double yBinCenter = yMin + ((yIndex + .5) / noOfYbins) * (yMax - yMin);
   Assert.equals(mapYCoordToBin(yBinCenter), yIndex);
   return yBinCenter;
 }