### Question:
Outcome { public static String normalizeStackTrace(String stackTrace) { return stackTrace.replaceAll(" *\r?\n[ \t]*", " ") .replaceAll("^[ \t\r\n]*|[ \t\r\n]*$", ""); } Outcome(Result result, String digest_); private  Outcome(Type type_); static String normalizeStackTrace(String stackTrace); static Outcome createTimeout(WorkOrder workOrder); static Outcome createCrash(); @Override boolean equals(Object otherObj); @Override int hashCode(); @Override String toString(); static Outcome fromString(String s); public Type type; public String digest; public Long runTime; public String stackTrace; public Collection<Integer> coveredMutants; }### Answer:
@Test public void testNormalizeStackTrace() { assertEquals("", Outcome.normalizeStackTrace("")); assertEquals("failure message", Outcome.normalizeStackTrace(" \nfailure message\t\r\n ")); assertEquals("one two three", Outcome.normalizeStackTrace("one \n \ttwo\r\n\t three\n")); }