assertReflectionEquals(newPluginConfiguration, savedPluginConfiguration);
}
@Test
public void saveOrUpdateShouldSavePluginConfigurationProperties() {
PluginConfiguration pluginConfiguration = PersistedObjectsFactory.getDefaultPluginConfiguration();
PluginProperty property = new PluginProperty("Property", PluginProperty.Type.BOOLEAN, "true");
List<PluginProperty> properties = Arrays.asList(property);
pluginConfiguration.setProperties(properties);
pluginConfigurationDao.saveOrUpdate(pluginConfiguration);
session.flush();
session.evict(pluginConfiguration);
PluginConfiguration updatedPluginConfiguration = (PluginConfiguration) session.get(PluginConfiguration.class, pluginConfiguration.getId());
assertEquals(updatedPluginConfiguration.getProperties(), properties, "Plugin configuration properties should be saved.");
}