@Test
public void setExpiryTime() throws Exception {
final Date expiryTime = new Date();
NodePath expiryPath = endpointNode.child(TIMETOLIVE);
backend.ensurePathExists(eq(expiryPath), eq(CreateMode.PERSISTENT), anyObject(byte[].class));
replay(backend);
endpointNode.setExpiryTime(expiryTime, true);