assertEquals(persistedList1, persistedList1);
assertFalse(persistedList1.equals(null));
assertFalse(persistedList1.equals(new Object()));
assertFalse(persistedList1.equals(persistedList2));
assertEquals(persistedList1, persistedList3);
persistedList1.add(new Shell("echo 'test1'"));
persistedList3.add(new Shell("echo 'test1'"));
assertEquals(persistedList1, persistedList3);
persistedList1.add(new Shell("echo 'test3'"));
persistedList1.add(new Shell("echo 'test2'"));
persistedList3.add(new Shell("echo 'test2'"));
persistedList3.add(new Shell("echo 'test3'"));
assertEquals(persistedList1, persistedList3);
persistedList3.replaceBy(Arrays.asList(new Shell("echo 'test2'")));
assertFalse(persistedList1.equals(persistedList3));
}