	@Test
	public void putWithSetTtl() throws EtcdException {

		server.expect(MockRestRequestMatchers.requestTo("http://localhost:2379/v2/keys/sample?ttl=60"))
				.andExpect(MockRestRequestMatchers.method(HttpMethod.PUT))
				.andExpect(MockRestRequestMatchers.content().contentType(MediaType.APPLICATION_FORM_URLENCODED))
				.andExpect(MockRestRequestMatchers.content().string("value=Hello+world"))
				.andRespond(MockRestResponseCreators.withSuccess(new ClassPathResource("EtcdClientTest_set.json"),
						MediaType.APPLICATION_JSON));

		EtcdResponse response = client.put("sample", "Hello world", 60);
		Assert.assertNotNull("response", response);

		server.verify();
	}