@Test
public void testGetBoundingBoxStatic(){

    Envelope env = MapLayer.getBoundingBox("EPSG:2154", parent, new Envelope());
    assertTrue(env.equals(new Envelope(40,70,40,70)));
    String s = "EPSG:2154";
    String wgs = "EPSG:4326";
    Collection<String> srs = new ArrayList<String>();
    List<MapLayer> children = new ArrayList<MapLayer>(2);
    children.add(c1);
    children.add(c2);
    BoundingBox bb = new BoundingBox(s, new Envelope(10,20,10,20));
    BoundingBox bw = new BoundingBox(wgs, new Envelope(2,6,5,7));
    HashMap<String, BoundingBox> hm = new HashMap<String,BoundingBox>();
    hm.put(s,bb);
    hm.put(wgs,bw);
    parent = new MapLayer("parent","parent",srs,children,bw, hm);
    env = MapLayer.getBoundingBox("EPSG:2154", parent, new Envelope());
    assertTrue(env.equals(new Envelope(10,20,10,20)));
}