@Test
public void testQueryAnalyzer()
                        throws Exception {

    List<org.deegree.protocol.wfs.query.Query> wfsQueries = createQueries();
    WebFeatureService controller = mockController();
    WfsFeatureStoreManager manager = mockManager();
    QueryAnalyzer queryAnalyzer = new QueryAnalyzer( wfsQueries, controller, manager, false );
    Map<FeatureStore, List<Query>> queries = queryAnalyzer.getQueries();
    assertThat( queries.size(), is( 1 ) );
    assertThat( queries.values().iterator().next().size(), is( 2 ) );
    Map<QName, List<ProjectionClause>> projections = queryAnalyzer.getProjections();
    assertThat( projections.size(), is( 2 ) );
    assertThat( projections.get( FEATURETYPE_CP ).size(), is( 2 ) );
    assertThat( projections.get( FEATURETYPE_AU ).size(), is( 1 ) );
}