}
@Test
public void testCreate() throws SQLException {
SystemmessageBean systemmessage = new SystemmessageBean();
Language language = LanguageFinderBase.findAll(con).iterator().next();
systemmessage.setLanguageid(language.getLanguageid());
StringBuffer text = new StringBuffer();
// while(text.length()<= 100){
// text.append("0123456789");
// }
systemmessage.setHeadline(text.toString());
//
// while(text.length()<= 1500){
// text.append("0123456789");
// }
systemmessage.setText(text.toString());
systemmessage.setStatus(new Integer(Status.ACTIVE));
systemmessage.setValidfrom(new Date(System.currentTimeMillis()));
systemmessage.setValidto(new Date(System.currentTimeMillis()+10000));
systemmessage.setTscreated(new Timestamp(System.currentTimeMillis()));
systemmessage.setCreatedby("System");
systemmessage.setUpdatedby("System");
systemmessage.create(con);
assertNotNull("Systemmessageid ska inte var null", systemmessage.getId());
}