public class CopyInputExtractorTest extends AbstractExtractorTest {
@Test
public void testCopy() throws Extractor.ReservedFieldException, ConfigurationException {
Message msg = new Message("The short message", "TestUnit", Tools.iso8601());
msg.addField("somefield", "foo");
CopyInputExtractor x = new CopyInputExtractor(metricRegistry, "bar", "bar", 0, Extractor.CursorStrategy.COPY, "somefield", "our_result", noConfig(), "foo", noConverters(), Extractor.ConditionType.NONE, null);
x.runExtractor(msg);
assertEquals("foo", msg.getField("our_result"));