@Test
public void testBoundMixed() throws Exception {

    AggregateTypeConfiguration config = new AggregateTypeConfiguration(BASIC_POLYGONS);
    config.addSourceType("store1", "BasicPolygons");
    config.addSourceType("store2", "BasicPolygons4269");
    store.addType(config);
    
    assertEquals(new ReferencedEnvelope(-2, 4, -1, 6, CRS.decode("EPSG:4326")), store
            .getFeatureSource(BASIC_POLYGONS).getBounds(Query.ALL));
}