converted to Junit4