PRESALES-280 : Add JUnit tests