@@ -0,0 +1,859 @@
+package org.mockitousage.bugs;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.mockito.Mock;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Collection;%0A%0Aimport static org.mockito.BDDMockito.given;%0Aimport static org.mockito.MockitoAnnotations.initMocks;%0A%0A/**%0A * This was an issue reported in #1174.%0A */%0Apublic class GenericsMockitoAnnotationsTest %7B%0A%0A    @Mock%0A    private TestCollectionSourceProvider testCollectionSourceProvider;%0A%0A    @Test%0A    public void test() %7B%0A        given(testCollectionSourceProvider.getCollection(new ArrayList%3CInteger%3E())).willReturn(new ArrayList%3CInteger%3E());%0A    %7D%0A%0A    static class TestCollectionSourceProvider %7B%0A        %3CT extends Collection%3CE%3E, E%3E T getCollection(T collection) %7B%0A            return collection;%0A        %7D%0A    %7D%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        initMocks(this);%0A    %7D%0A%7D%0A

Add regression test for issue #1174