}
@Test(dataProvider="threadSafeFactoryData")
public void testThreadSafeConstructors(final int ploidy, final int maxAltAlleles, final AFCalculatorImplementation impl, final int cpuThreadCount, final int dataThreadCount) {
final GenomeAnalysisEngine toolkit = new GenomeAnalysisEngine();
final GATKArgumentCollection gatkArguments = new GATKArgumentCollection();
gatkArguments.numberOfCPUThreadsPerDataThread =cpuThreadCount;
gatkArguments.numberOfDataThreads = dataThreadCount;
toolkit.setArguments(gatkArguments);
final StandardCallerArgumentCollection callerArgs = new StandardCallerArgumentCollection();
if (impl != null) callerArgs.requestedAlleleFrequencyCalculationModel = impl;