OTC Technical task

Application build process  based on maven. 
Application contain two modules named core and util.
Util module contains priority queue class implemented using binary max heap stored in array. Please find details here: http://en.wikipedia.org/wiki/Binary_heap.
Priority queue is thread safe.
Core module contain printer class. 
Printer uses priority queue.

For example invoking printer.asSortedString(1,4,6,3,2) will return string "6,4,3,2,1".

All classes written in TDD way.