throws IllegalAccessException, InstantiationException, IllegalArgumentException
{
final Object testObject = testClass.newInstance() ;
if (testObject instanceof InteropTestCase)
{
final InteropTestCase interopTestCase = (InteropTestCase)testObject ;
interopTestCase.setParticipantURI(participantURI) ;
interopTestCase.setTestTimeout(testTimeout) ;
interopTestCase.setAsyncTest(asyncTest) ;
interopTestCase.setName(testName) ;
return interopTestCase ;
}
else if (testObject instanceof TestCase)
{
final TestCase test = (TestCase)testObject ;