@Test
public void createPermanentData() {

    final Consul consul = new Consul(System.getProperty(EP_PROPERTY));
    assertTrue(consul.isValid());
    final String keyName = "thepermanentone";
    consul.removePermanentData(keyName);
    assertTrue(consul.createPermanentData(keyName, "SomeValue"));
    assertFalse(consul.createPermanentData(keyName, "AlreadyExists"));
    assertThat(consul.readData(keyName), is("SomeValue"));
    assertTrue(consul.writePermanentData(keyName, "OtherValue"));
    assertThat(consul.readData(keyName), is("OtherValue"));
    assertTrue(consul.removePermanentData(keyName));
}