/** Test loading languages */ @Test public void testLoadLanguages() throws Exception { System.out.println(">>> Loading all languages."); UserTransaction tx = getUserTransaction(); try { AdminEJBLocal instance = (AdminEJBLocal) getEJBInstance(AdminEJB.class.getSimpleName()); tx.begin(); List<Language> result = instance.getLanguages(LANG); tx.commit(); assertNotNull("List of languages is null.", result); System.out.println(">>> Found " + result.size() + " languages."); } catch (Exception e) { tx.rollback(); fail(e.getMessage()); } }