added junit test example