Does Java has any mean of disabling part of the code for "production" compilations? A kind of #if UNIT_TEST ... #endif in the C world. Maybe some magic annotation? :)