title: Parameterized JUnit tests lazy collection
body: <p>I am writing a <code>parameterized</code> JUnit 4 test with about 100k instance of the parameters and I want to return a collection from the data method, that loads things lazily. But I get a class cast exception after I return my implementation of <code>java.util.Collection</code> saying my collection <code>cannot be cast to java.util.List</code>. Do I need to implement <code>List&lt;Object[]&gt;</code> instead of <code>Collection&lt;Object[]&gt;</code> even though <code>@Parameters</code> annotated method wants to return <code>Collection&lt;Object[]&gt;</code>?</p>