GuideTree implements Iterable<GuideTreeNode<S, C>> { public List<S> getSequences() { return sequences; } GuideTree(List<S> sequences, List<PairwiseSequenceScorer<S, C>> scorers); int[] getAllPairsScores(); double[][] getDistanceMatrix(); Node getRoot(); int[][] getScoreMatrix(); List<S> getSequences(); @Override Iterator<GuideTreeNode<S, C>> iterator(); @Override String toString();  }
@Test public void testGetSequences() { List<ProteinSequence> list = tree.getSequences(); assertEquals(list.size(), 4); assertEquals(list.get(0), proteins.get(0)); assertEquals(list.get(1), proteins.get(1)); assertEquals(list.get(2), proteins.get(2)); assertEquals(list.get(3), proteins.get(3)); }