I agree that switching the get() and size() make the test pass but the exception shows that invariant has been violated.  `java.lang.IndexOutOfBoundsException: Index: 272, Size: 272`