Testing of junit4 using class ArrayList