assertThat(regionWidget, is(nullValue()));
}
private long addPreferenceToRegionWidget(Long validRegionWidgetId) {
RegionWidget regionWidget = repository.get(validRegionWidgetId.toString());
RegionWidgetPreference regionWidgetPreference = new JpaRegionWidgetPreference(null, validRegionWidgetId,
VALID_PREFERENCE_NAME, VALID_PREFERENCE_VALUE);
regionWidget.getPreferences().add(regionWidgetPreference);
RegionWidget saved = repository.save(regionWidget);
manager.flush();