/** Test of getHttpFormatString method, of class HTTPTileSet. */
 @Test
 public void testGetHttpFormatString() {
   System.out.println("getHttpFormatString");
   HTTPTileSet instance = new HTTPTileSet("http://tile.openstreetmap.org/{z}/{x}/{y}.png");
   String expResult = "http://tile.openstreetmap.org/{z}/{x}/{y}.png";
   String result = instance.getHttpFormatString();
   assertEquals(expResult, result);
 }
  /** Test of urlForTile method, of class HTTPTileSet. */
  @Test
  public void testUrlForTile() throws MalformedURLException {
    System.out.println("urlForTile");

    HTTPTileSet tileSet = new HTTPTileSet("http://tile.openstreetmap.org/{z}/{x}/{y}.png");
    Tile tile = new ImageTile(tileSet, 8, 42, 95);
    String expResult = new URL("http://tile.openstreetmap.org/8/42/95.png").toString();
    String result = tileSet.urlForTile(tile).toString();
    assertEquals(expResult, result);
  }