@Test
public void testValueDecorator() throws IOException, InterruptedException {

  String value = "value%{nanos}";
  ValueDecorator dec = new ValueDecorator(new ConsoleEventSink(), "attr", value, false);
  dec.open();
  Event e = new EventImpl("body".getBytes(), 1234567L, Event.Priority.INFO, 87654321L, "host");
  dec.append(e);
  Assert.assertNotNull("Attribute wasn't added", e.get("attr"));
  // Attribute value should NOT be escaped
  Assert.assertArrayEquals("Attribute value is incorrect", value.getBytes(), e.get("attr"));
  dec.close();
}