valido. * @return Objeto minimo possivel */ public Category getMinimalValidCategory() { Category cat = new Category(); cat.setDescription("Descricao"); return cat; }}Ao se tentar executar o teste neste momento, e lancado o seguinte erro: java.lang.ClassFormatError: Absent Code attribute in method...Isto ocorre porque o arquetipo disponibilzado vem com a dependencia javaee-api e javaee-web-api, que especificam o JavaEE6.No entanto, estas bibliotecas servem apenas para compilacao, pois os metodos que estao dentro destes jars estao sem implementacao.Para corrigir este problema, deve ser feita a adicao dos seguintes campos no arquivo pom.xml do projeto, os quais resolvem as dependencias relativas a uma implementacao completa do javaee 6.0:<repository> <id>repository.jboss.org</id> <name>JBoss Repository</name> <url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url></repository><dependency> <groupId>org.jboss.spec</groupId> <artifactId>jboss-javaee-6.0</artifactId> <version>1.0.0.Final</version> <scope>test</scope> <type>pom</type></dependency>Neste ponto, o JUnit teste ainda nao consegue executar o teste (e lancada uma excecao do tipo java.util.NoSuchElementException, provavelmente ligada a falta de uma fonte/conexao a um banco de dados).Resta agora configurar o acesso ao banco de dados:O conteudo da pasta src/main/resources deve ser copiado para a pasta src/test/resourcesNa pasta src/main/resources/META-INFArquivo beans.xml:<?xml version="1.0"?><beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_1.xsd"> <alternatives> <class>br.gov.frameworkdemoiselle.transaction.JPATransaction</class> </alternatives></beans>Arquivo persistence.xml:<?xml version="1.0" encoding="UTF-8"?><persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> <persistence-unit name="bookmark-ds" transaction-type="RESOURCE_LOCAL"> <class>foo.domain.Bookmark</class> <class>foo.domain.Category</class> <properties> <property name="javax.persistence.jdbc.driver" value="org.hsqldb.jdbcDriver" /> <property name="javax.persistence.jdbc.user" value="sa" /> <property name="javax.persistence.jdbc.password" value="" /> <property name="javax.persistence.jdbc.url" value="jdbc:hsqldb:hsql://localhost:9001/bookmark" /> <property name="eclipselink.logging.level" value="FINE" /> <property name="eclipselink.ddl-generation" value="create-tables" /> <property name="eclipselink.ddl-generation.output-mode" value="database" /> <property name="hibernate.show_sql" value="true" /> <property name="hibernate.format_sql" value="false" /> <property name="hibernate.hbm2ddl.auto" value="update" /> </properties> </persistence-unit></persistence>Na pasta src/test/resources/META-INFArquivo beans.xml:<?xml version="1.0"?><beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_1.xsd"></beans>Arquivo persistence.xml:<?xml version="1.0" encoding="UTF-8"?><persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> <persistence-unit name="bookmark-ds"> <jta-data-source>java:/DefaultDS</jta-data-source> <class>foo.domain.Bookmark</class> <class>foo.domain.Category</class> <properties> <property name="javax.persistence.jdbc.driver" value="org.hsqldb.jdbcDriver" /> <property name="javax.persistence.jdbc.user" value="sa" /> <property name="javax.persistence.jdbc.password" value="" /> <property name="javax.persistence.jdbc.url" value="jdbc:hsqldb:hsql://localhost:9001/bookmark" /> <property name="eclipselink.logging.level" value="FINE" /> <property name="eclipselink.ddl-generation" value="create-tables" /> <property name="eclipselink.ddl-generation.output-mode" value="database" /> <property name="hibernate.show_sql" value="true" /> <property name="hibernate.format_sql" value="false" /> <property name="hibernate.hbm2ddl.auto" value="update" /> </properties> </persistence-unit></persistence>Com isto, chegamos a tao desejada barra verde do JUnit, juntamente com o deploy do projeto no JBOSS6.Agradeco ao @mariojp pelo apoio na hora de encontrar esta solucao, ao mostrar seu conhecimento sobre os arquivos de configuracao.