@Test
public void saveWidgetWithLongDescription() {
final String url = "http://example.com/doesnotexistyet";
final String longDescription = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dictum sodales erat consequat pulvinar. Pellentesque ut massa mi, sit amet imperdiet diam. Morbi nec magna quis nisi bibendum dignissim. Fusce et rhoncus turpis. Integer mollis magna sit amet nulla convallis placerat dignissim lorem blandit. Nulla magna justo, cursus ac semper sed, pulvinar in turpis. Donec ultricies nibh sed nulla congue ullamcorper. Fusce commodo ultrices nunc, interdum lacinia elit faucibus at. Fusce laoreet ultricies volutpat. ";
Widget doesnotexist = repository.getByUrl(url);
assertNull(doesnotexist);
Widget widget = new Widget();
widget.setTitle("Widget with long description");
widget.setUrl(url);
widget.setDescription(longDescription);
widget = repository.save(widget);
assertNotNull(widget.getEntityId());
assertEquals(longDescription, widget.getDescription());
}