# Two Amazing NetBeans 6.8Beta Features

1. NetBeans 6.8Beta generates Unit-Tests for EJB 3.1 with Embeddable Container code. It looks like:    @Test    public void testHello() throws Exception {        System.out.println("hello");        HelloService instance = (HelloService)javax.ejb.embeddable.EJBContainer.createEJBContainer().getContext().lookup("java:global/classes/HelloService");        String expResult = "";        String result = instance.hello();        assertEquals(expResult, result);        // TODO review the generated test code and remove the default call to fail.        fail("The test case is a prototype.");    }This is a nice feature: you don't have to look-up the JNDI-name...2. NetBeans is capable to auto-complete a bound item in the data table:                <h:dataTable id="hugo" value="#{newTweet.messages}" var="message">                    <h:column>                        <h:outputText value="#{message.content}"/>  //the auto-completion works here!                    </h:column>                </h:dataTable>I tested NetBeans 6.8Beta in the last few days. It is stable, fast and especially interesting for Java EE 6 projects... Especially EJB 3.1 / JPA 2.0 support and JSF 2.0 editor were improved significantly....
