public Map<String, String> getTestVersions(final Set<String> tests) {
final Map<String, String> selectedTestVersions = Maps.newLinkedHashMap();
final Map<String, ConsumableTestDefinition> testDefinitions = proctorResult.getTestDefinitions();
for (final String testName : tests) {
final ConsumableTestDefinition testDefinition = testDefinitions.get(testName);
if (testDefinition != null) {
selectedTestVersions.put(testName, testDefinition.getVersion());
}
}
return selectedTestVersions;
}