@Test public void shouldCreateANews() throws Exception { News news = new News("Richard Wright has died", "EN", "The keyboard of Pink Floyd has died today"); tx.begin(); em.persist(news); tx.commit(); assertNotNull(news.getTitle(), "Id should not be null"); }
public String getTitle() { return title; }
News { public String getTitle() { return title; } }
News { public String getTitle() { return title; } News();  News(String title, String language, String content); }
News { public String getTitle() { return title; } News();  News(String title, String language, String content); String getTitle(); void setTitle(String title); String getLanguage(); void setLanguage(String language); String getContent(); void setContent(String content); }
News { public String getTitle() { return title; } News();  News(String title, String language, String content); String getTitle(); void setTitle(String title); String getLanguage(); void setLanguage(String language); String getContent(); void setContent(String content);  }