@Test
public void generates_event_classes_for_every_listener_method() {

    generator = newEventStubGenerator(TwoMethodInterface.class);
    List<GeneratedClass> events = generator.getEvents();
    assertThat(events.size(), is(2));
    assertThat(events.get(0).name, endsWith(".OnOneEvent"));
    assertThat(events.get(1).name, endsWith(".OnTwoEvent"));
}