Unit test for bfCheckJavaMemory