WIP rewriting test-protocol package in order to compile reference java classes