@Test
public void testEventWithOneStatementWithOneListener() {

    EsperStatement statement = addTestStatement();
    CallRecordingListener listener = this.addListenerToStatement(statement);
    template.addStatement(statement);
    setupTemplateAndSendSampleEvent();
    assertEquals(1, listener.getNumberOfTimesInvoked());
}