Assert.assertEquals(samples, asList);
}
@Test(dataProvider = "twoSampleListData", dependsOnMethods={"testAsList"})
public void testEquals(final List<String> sample2, final List<String> samples2) {
final SampleList sampleList1 = new IndexedSampleList(sample2);
final SampleList sampleList2 = new IndexedSampleList(samples2);
Assert.assertTrue(SampleListUtils.equals(sampleList1, sampleList1));
Assert.assertTrue(SampleListUtils.equals(sampleList2,sampleList2));
Assert.assertEquals(SampleListUtils.equals(sampleList1, sampleList2),
Arrays.equals(SampleListUtils.asList(sampleList1).toArray(new String[sampleList1.sampleCount()]),
SampleListUtils.asList(sampleList2).toArray(new String[sampleList2.sampleCount()]))
);
Assert.assertEquals(SampleListUtils.equals(sampleList1,sampleList2),
SampleListUtils.equals(sampleList2,sampleList1));
}