I'm implemebting some lists in java, but I encountered this problem.
assertTrue( list.remove( "A" ) == void);
If you are looking to check if an element was removed, you can check like list.remove("A") == false which will do the same thing.
list.remove("A") == false