question: protected void assertStep ( Throwing . Function < String , String > step , String unformattedPath , String expectedPath ) throws Throwable { String unformatted = LineEnding . toUnix ( getTestResource ( unformattedPath ) ) ; String formatted = step . apply ( unformatted ) ; Assert . assertEquals ( - 1 , formatted . indexOf ( '\r' ) ) ; String expected = LineEnding . toUnix ( getTestResource ( expectedPath ) ) ; Assert . assertEquals ( expected , formatted ) ; }
target:  Reads the given resource from "before", applies the step, and makes sure the result is "after". 