@Test public void linkContainsCellsCorrespondingToInJunctionFollowedByCellsInCellChainFollowedByOutJunction() throws Exception { context.checking( new Expectations() { { oneOf(cellChain).iterator(); will(returnIterator(linkCell0, linkCell1)); } }); assertThat(link.cells(), contains(inJunction, linkCell0, linkCell1, outJunction)); }