@Test
public void testQuadTileConstruct() throws Exception {
Element rootElement = getRootElement();
QuadTileSet quadTileSet = new QuadTileSet(rootElement.getChild("ChildLayerSet").getChild("QuadTileSet"), "");
assertEquals("Bathymetry (30 arcsec)", quadTileSet.getName());
assertEquals("ReferencedEnvelope[-180.0 : 180.0, -90.0 : 90.0]", quadTileSet.getBounds().toString());
assertEquals("jpg", quadTileSet.getFileFormat());
assertEquals(512, quadTileSet.getTileSize());
assertEquals(6, quadTileSet.getScaleList().length);
// Lowest Zoom-Level
assertEquals(90, quadTileSet.getZoomLevel(0).getHeightInWorldUnits(), 0.0000000001);
assertEquals(2, quadTileSet.getZoomLevel(0).getMaxTilePerColNumber());
assertEquals(4, quadTileSet.getZoomLevel(0).getMaxTilePerRowNumber());
// Next Zoom-Level
assertEquals(45, quadTileSet.getZoomLevel(1).getHeightInWorldUnits(), 0.0000000001);
assertEquals(4, quadTileSet.getZoomLevel(1).getMaxTilePerColNumber());
assertEquals(8, quadTileSet.getZoomLevel(1).getMaxTilePerRowNumber());
// Url-Construction
assertEquals("http://s2.tileservice.worldwindcentral.com/getTile?T=global.topo_bathy_30arc&firstLevel=1&L=0&X=0&Y=0",
quadTileSet.getZoomLevel(0).getTileUrl(
new WWTile.WWTileName(0, 0, quadTileSet.getZoomLevel(0), null)));
}