public Object getTestObject() {
		Object testObject = testObjectMap.get(getTestClass());
		if (testObject == null) {
			try {
				ReflectiveCallable reflectiveCallable = new ReflectiveCallable() {
					@Override
					protected Object runReflectiveCall() throws Throwable {
						return createTest();
					}
				};
				testObject = reflectiveCallable.run();
				testObjectMap.put(getTestClass(), testObject);
			} catch (Throwable e) {
				return new Fail(e);
			}
		}
		return testObject;
	}
Get current test object

@return test object.
ngrinder-groovy/src/main/java/net/grinder/scriptengine/groovy/junit/TestObjectFactory.java