@Test
public void testGetMeasures() {

    List<Measure> measures = listener.getMeasures();
    assertThat(measures).hasSize(3);
    assertThat(measures.get(1).getNumberOfBeats()).isEqualTo(1);
    assertThat(measures.get(0).getMeasureIndex()).isEqualTo(new MeasureId(0));
    assertThat(measures.get(1).getMeasureIndex()).isEqualTo(new MeasureId(1));
    assertThat(measures.get(2).getMeasureIndex()).isEqualTo(new MeasureId(2));
    assertThat(measures.get(0).getBeats()).hasSize(5);
}