void () { String exceptionLine = "Caused by: java.lang.AssertionError: expected same"; ExceptionInfo info = ExceptionInfo.parseMessage(exceptionLine, exceptionLine.length()); assertNotNull(info); assertEquals("java.lang.AssertionError", info.getExceptionClassName()); }