}
@Test
public final void testPrefixRemovingCollection8()
{
PTASequenceSet c = new PTASequenceSet();
c.addSequence(new LinkedList<Label>());
c.addSequence(labelList(new String[]{"a"}));
c.addSequence(labelList(new String[]{}));
c.addSequence(labelList(new String[]{"a","b"}));
c.addSequence(labelList(new String[]{"a","c","d"}));
c.addSequence(labelList(new String[]{"a"}));
c.addSequence(labelList(new String[]{"a"}));
Set<List<Label>> expected = buildSet(new String[][]{
new String[]{"a","b"},
new String[]{"a","c","d"}
},config,converter),actual = new HashSet<List<Label>>();actual.addAll(c.getData());
Assert.assertEquals(2, c.getData().size());
Assert.assertTrue(expected.equals(actual));
Assert.assertFalse(c.getData().isEmpty());
Assert.assertTrue(c.contains(new LinkedList<Label>()));
Assert.assertTrue(c.contains(labelList(new String[]{"a"})));
Assert.assertTrue(c.contains(labelList(new String[]{"a","b"})));
Assert.assertTrue(c.contains(labelList(new String[]{"a","c"})));
Assert.assertTrue(c.contains(labelList(new String[]{"a","c","d"})));
Assert.assertFalse(c.contains(labelList(new String[]{"a","b","a"})));
Assert.assertTrue(c.containsAll(expected));
Assert.assertTrue(c.containsAll(c));
}