  @Test(expected = UnableToCompleteException.class)
  public void shouldFailOnRedundantMultiEventTypes() throws Exception {

    JParameter param = mock(JParameter.class);
    EventTypes typeAnnotation = mock(EventTypes.class);
    when(typeAnnotation.value()).thenReturn(new Class<?>[] {String.class, Object.class});
    when(param.getAnnotation(EventTypes.class)).thenReturn(typeAnnotation);

    JMethod method = newSubscribeMethod("myMethod", newEventType("MyEvent"));
    when(method.getParameters()).thenReturn(new JParameter[] {param});
    when(target.getInheritableMethods()).thenReturn(new JMethod[] {method});

    writer.writeGetMethods(target, output);
  }