I guess you wanna recreate a test environment. I used Jakarta cactus for the same in case you need help regarding the same PM me. You may also like going through the help of cactus which explains in greta detail about all this.