void () { try { doTest("just some text", new MySimpleInspection()); } catch (ComparisonFailure failure) { String message = failure.getMessage(); String firstLine = message.split("\n")[0]; assertSameLines("hello.txt: extra (1:1/14): 'just some text' (Magic problem) [HighlightInfoTypeImpl[severity=WARNING, key=WARNING_ATTRIBUTES]]", firstLine); } }