return getTestClass().getOnlyConstructor().newInstance(computeParams());
}
private Object[] computeParams() throws Exception {
try {
DataTableRow row = parametersTable.getRows().get(parameterSetNumber);
return row.getValues().toArray();
} catch (ClassCastException cause) {
throw new Exception(String.format(
"%s.%s() must return a Collection of arrays.",
getTestClass().getName(),
DataDrivenAnnotations.forClass(getTestClass()).getTestDataMethod().getName()),