} );
}
public void testBuiltInComponents()
{
Component c = new Component(Manager.class);
assert c.getName().equals("org.jboss.seam.conversationManager");
assert c.getBeanClass()==Manager.class;
assert c.getType()==ComponentType.JAVA_BEAN;
assert c.getScope()==ScopeType.EVENT;
assert c.hasDestroyMethod();
assert !c.hasCreateMethod();
assert c.getCreateMethod()==null;
assert c.getDestroyMethod().getName().equals("destroy");
assert c.getInAttributes().size()==0;
assert c.getUnwrapMethod()==null;
assert c.getOutAttributes().size()==0;
assert c.getRemoveMethods().size()==0;
c = new Component(Init.class);
assert c.getName().equals("org.jboss.seam.settings");
assert c.getBeanClass()==Init.class;
assert c.getType()==ComponentType.JAVA_BEAN;
assert c.getScope()==ScopeType.APPLICATION;
assert !c.hasDestroyMethod();
assert !c.hasCreateMethod();
assert c.getCreateMethod()==null;
assert c.getDestroyMethod()==null;
assert c.getInAttributes().size()==0;
assert c.getUnwrapMethod()==null;
assert c.getOutAttributes().size()==0;
assert c.getRemoveMethods().size()==0;
c = new Component(ManagedPersistenceContext.class, "pc");
assert c.getName().equals("pc");
assert c.getBeanClass()==ManagedPersistenceContext.class;
assert c.getType()==ComponentType.JAVA_BEAN;
assert c.getScope()==ScopeType.CONVERSATION;
assert c.hasDestroyMethod();
assert c.hasCreateMethod();
assert c.getCreateMethod().getName().equals("create");
assert c.getDestroyMethod().getName().equals("destroy");
assert c.getInAttributes().size()==0;
assert c.getUnwrapMethod().getName().equals("getEntityManager");
assert c.getOutAttributes().size()==0;
assert c.getRemoveMethods().size()==0;
c = new Component(ManagedHibernateSession.class, "pc");
assert c.getName().equals("pc");
assert c.getBeanClass()==ManagedHibernateSession.class;
assert c.getType()==ComponentType.JAVA_BEAN;
assert c.getScope()==ScopeType.CONVERSATION;
assert c.hasDestroyMethod();
assert c.hasCreateMethod();
assert c.getCreateMethod().getName().equals("create");
assert c.getDestroyMethod().getName().equals("destroy");
assert c.getInAttributes().size()==0;
assert c.getUnwrapMethod().getName().equals("getSession");
assert c.getOutAttributes().size()==0;
assert c.getRemoveMethods().size()==0;
}