added a junit test