}
@Test
public void testSetConfiguration() throws MarmottaClientException, IOException {
ConfigurationClient client = new ConfigurationClient(config);
// set a single-value string configuration
client.setConfiguration("marmottaclient.test.single", "abc");
Configuration c_single = client.getConfiguration("marmottaclient.test.single");
Assert.assertNotNull(c_single);
Assert.assertEquals("abc",c_single.getString());
client.deleteConfiguration("marmottaclient.test.single");
c_single = client.getConfiguration("marmottaclient.test.single");
Assert.assertNull(c_single);
// set a single-value boolean configuration
client.setConfiguration("marmottaclient.test.bool",true);
Configuration c_bool = client.getConfiguration("marmottaclient.test.bool");
Assert.assertNotNull(c_bool);
Assert.assertEquals("true",c_bool.getString());
client.deleteConfiguration("marmottaclient.test.bool");
c_bool = client.getConfiguration("marmottaclient.test.bool");
Assert.assertNull(c_bool);
// set a list value configuration
client.setConfiguration("marmottaclient.test.list", Lists.newArrayList("abc","efg","hij"));
Configuration c_list = client.getConfiguration("marmottaclient.test.list");
Assert.assertNotNull(c_list);
Assert.assertThat(c_list.getList(), Matchers.hasItem("efg"));
client.deleteConfiguration("marmottaclient.test.list");
c_list = client.getConfiguration("marmottaclient.test.list");
Assert.assertNull(c_list);
}