1. An apparatus having a processor, the apparatus comprising: a receiver configured to receive a test template, wherein the test template comprises a plurality of template instructions, wherein the plurality of template instructions comprise a source code template instruction, wherein the source code template instruction defines a source code command to be generated; a test generator configured to generate a test in accordance with the test template received by said receiver, said test generator comprising: an instruction generator configured to generate a first instruction based on a template instruction of the plurality of template instructions; and a code generator configured to generate a second instruction based on the source code template instruction, wherein the second instruction is associated with the source code command, wherein said test generator is configured to manage shared resources used by the generated first instruction and the generated second instruction, and wherein said instruction generator and said code generator are configured to utilize a resource manager for allocating shared resources to be used by the generated first instruction and the generated second instruction.