addLog(log, "NB2040811605");
refreshEM();
Map<String, Object> params = Collections.singletonMap("name", (Object)"java.awt.EventDispatchThread.pumpEvents");
List<Method> methods = PersistenceUtils.executeNamedQuery(em, "Method.findByName", params, Method.class);
assertEquals(1, methods.size());
Method method = methods.get(0);
assertNotNull(method.getSourcejar());
assertEquals("rt.jar", method.getSourcejar().getName());
params = Collections.singletonMap("name", (Object)"org.openide.loaders.FolderInstance.defaultProcessObjects");
refreshEM();
methods = PersistenceUtils.executeNamedQuery(em, "Method.findByName", params, Method.class);
assertEquals(1, methods.size());
method = methods.get(0);
assertNull(method.getSourcejar());
log = LogsManagerTest.extractResourceAs(data, "dup2834", "NB2040811605.1");
addLog(log, "NB2040811605");
refreshEM();
methods = PersistenceUtils.executeNamedQuery(em, "Method.findByName", params, Method.class);
assertEquals(1, methods.size());
method = methods.get(0);
assertNotNull(method.getSourcejar());
assertEquals("org-openide-loaders.jar", method.getSourcejar().getName());
}