         exampleBoundedContext.initialize()
 
         query =
-          name: 'Aggregate:findByExample'
+          name: 'Aggregate:findById'
           id: 42
-          params:
-            foo: 'bar'
-
 
         exampleBoundedContext.query query
 
-        expect(FooReadAggregateRepository::findByExample.calledWith query.id, query.params).to.be.ok()
+        expect(FooReadAggregateRepository::findById.calledWith query.id).to.be.ok()
 
 
     describe 'has a registered handler', ->

      it 'should execute the query directly on the correct read aggregate repository', ->
        BoundedContext = eventric 'BoundedContext'
        class FooReadAggregateRepository
          findByExample: sandbox.stub()
        class ExampleBoundedContext extends BoundedContext
          readAggregateRepositories:
            'Aggregate': FooReadAggregateRepository

        BoundedContext = eventric 'BoundedContext'
        exampleApplicationService =
          queries:
            'customQuery': 'customQueryMethod'
          customQueryMethod: sandbox.stub()

        class ExampleBoundedContext extends BoundedContext
          applicationServices: [
            exampleApplicationService
          ]
        exampleBoundedContext = new ExampleBoundedContext
        exampleBoundedContext.initialize()

        query =
          name: 'customQuery'
          params:
            foo: 'bar'
        exampleBoundedContext.query query

        expect(exampleApplicationService.customQueryMethod.calledWith query.params).to.be.ok()


  describe 'onDomainEvent', ->
