import br.com.procempa.modus.services.UsuarioDataServices;
public class FilaInscricaoDataServicesTest extends TestCase {
public void testInscreveUsuario() throws Exception {
FilaInscricao fila = FilaInscricaoDataServices.getList().get(0);
Turma turma = TurmaDataServices.getTurmasAbertas(fila.getCurso()).get(0);
Inscricao inscricao = FilaInscricaoDataServices.inscreveUsuario(fila, turma);
assertTrue(inscricao != null);
assertTrue(PersistentAccessFactory.getInstance().find(FilaInscricao.class, fila.getId()) == null);
}