@Test
public void writeSessionData() throws Exception {

    final Consul consul = new Consul(System.getProperty(EP_PROPERTY));
    assertTrue(consul.isValid());
    final ConsulSession session = consul.createSession(getSessionName(), 10, 0);
    System.out.println(session.getId());
    assertThat(session, is(notNullValue()));
    assertTrue(consul.writeSessionData("TheKey", "TheValue", session.getId()));
    assertThat(consul.readData("TheKey"), is("TheValue"));
    assertTrue(consul.writeSessionData("TheKey", "TheNewValue", session.getId()));
    assertThat(consul.readData("TheKey"), is("TheNewValue"));
    session.close();
}