test code for visualvm profiling