assertEquals("<10> 07 Aug 2013 somesubsystem: this is my message for username9001 id:9001", msg.getField("somefield"));
}
@Test
public void testDoesNotCutFromStandardFields() throws Exception {
Message msg = new Message("The short message", "TestUnit", Tools.iso8601());
RegexExtractor x = new RegexExtractor(metricRegistry, "foo", "foo", 0, Extractor.CursorStrategy.CUT, "message", "our_result", config("^(The).+"), "foo", noConverters(), Extractor.ConditionType.NONE, null);
x.runExtractor(msg);
// Would be cut to "short message" if cutting from standard field was allowed.
assertEquals("The short message", msg.getField("message"));
}