import jpype
from . import common

class CollectionTestCase(common.JPypeTestCase):

    def setUp(self):
        super(CollectionTestCase, self).setUp()

    def testCollection(self):
        collection = jpype.java.util.ArrayList()
        collection.add(1)
        collection.add(2)
        self.assertEqual([1, 2], list(collection))

@@ -315,13 +315,20 @@
 2%5D, 
-list(
+%5Bi for i in 
 coll
@@ -333,11 +333,11 @@
 llection
-)
+%5D
 )%0A

Make collection test more explicit.