}
@Test(dataProvider = "indexCreator")
public void testGetIndexCreator(IndexCreatorTest spec) throws Exception{
File dummy = new File("");
IndexCreator ic = GATKVCFUtils.getIndexCreator(spec.type, spec.parameter, dummy);
Assert.assertEquals(ic.getClass(), spec.expectedClass, "Wrong IndexCreator type");
if (spec.expectedDimension != null) {
Integer dimension = (int)spec.dimensionGetter.invoke(ic);
Assert.assertEquals(dimension, spec.expectedDimension, "Wrong dimension");
}
}