@Test
public void testBuildUrl1() throws TmsLayerException {

	TmsLayer tmsLayer = new TmsLayer();
	tmsLayer.setBaseTmsUrl("classpath:/org/geomajas/layer/tms/tileMapCapa1.xml");
	TileMap tileMap = configurationService
			.getCapabilities(tmsLayer);
	TileMapUrlBuilder builder = new TileMapUrlBuilder(tileMap);
	String url = builder.buildUrl(new TileCode(1, 2, 3), BASE_TMS_URL);
	Assert.assertEquals("http://www.geomajas.org/tms/some_layer/href2/2/3.extension", url);
}