added structure of junit test for apartmentsortutil class