@Inject
private ConfigDao configdao;
@Test
public void test() {
Config config = configdao.create();
config.setName("PersistenceConfigServiceTest");
config.setVal("True");
Config managedConfig = configdao.update(config);
Config foundConfig = configdao.read(managedConfig.getId());
Assert.assertTrue(config.getName().equalsIgnoreCase(foundConfig.getName()));
Assert.assertTrue(config.getVal().equalsIgnoreCase(foundConfig.getVal()));
configdao.delete(foundConfig);
}