Testing interaction with netbeans