}
@Test
public void testComponent() throws IOException{
setUp("res/viewmodel_component.nps");
perUtils.persist(new InnocentClass("org.netbeans.core.TimableEventQueue"));
Matcher.getDefault().reload();
EntityManager em = perUtils.createEntityManager();
em.getTransaction().begin();
Component comp = sm.getComponent(em);
em.getTransaction().commit();
em.close();
assertEquals("java and loader classes are ignored", new Component("debuggercore", "code"), comp);
em = perUtils.createEntityManager();
em.getTransaction().begin();
em.persist(new InnocentClass("org.openide.filesystems.FileUtil"));
em.persist(new InnocentClass("URLMapper"));
em.getTransaction().commit();
em.close();
Matcher.getDefault().reload();
setUp("res/url_mapper.nps");