In a test like this:
@Test
public void test() {
List l = new LinkedList();
l.add(new String [] {\"tes
You are creating a new Object reference and passing it to the remove() method . From the data you posted , it looks like you can create a custom class with two properties and override its equals() and hashCode() instead of storing them as String[] OR Keep the reference to the String[] object inserted and use that reference to remove.