from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import unittest
from jnius.reflect import autoclass

class ReflectTest(unittest.TestCase):

    def test_stack(self):
        Stack = autoclass('java.util.Stack')
        stack = Stack()
        self.assertIsInstance(stack, Stack)
        stack.push('hello')
        stack.push('world')
        self.assertEqual(stack.pop(), 'world')
        self.assertEqual(stack.pop(), 'hello')

@@ -475,16 +475,258 @@
 pop(), 'hello')%0A
+%0A    def test_list_iteration(self):%0A        ArrayList = autoclass('java.util.ArrayList')%0A        words = ArrayList()%0A        words.add('hello')%0A        words.add('world')%0A        self.assertEqual(%5B'hello', 'world'%5D, %5Bword for word in words%5D)%0A

add test for for...in iteration of list interfaces