Object fixtureAsObject = klass.newInstance();
if (fixtureAsObject instanceof Fixture) {
return (Fixture) fixtureAsObject;
} else {
throw new ClassIsNotFixtureException(fixtureClassName);
}
}
catch (IllegalAccessException unhandled) {
// TODO: Handle constructor not public?
throw unhandled;