Encapsulate the resource in RAIItest.cpp