HashMap<String, String> testFilesMap = createFileMap(testDataPath);
String documentFileName = getFileNameWithoutExtensions(document.getDocument()
.getAbsolutePath());
if (testFilesMap.get(documentFileName) != null) {
File testFile = new File(testFilesMap.get(documentFileName));
testCas.reset();
XmiCasDeserializer.deserialize(new FileInputStream(testFile), testCas, true);
IPreferenceStore store = RutaAddonsPlugin.getDefault().getPreferenceStore();
String factoryName = store.getString(TestingPreferenceConstants.EVALUATOR_FACTORY);
boolean includeSubtypes = store.getBoolean(TestingPreferenceConstants.INCLUDE_SUBTYPES);
boolean useAllTypes = store.getBoolean(TestingPreferenceConstants.ALL_TYPES);