question: public static void assertEqualsIgnoreNewline ( String expected , String received ) { String expectedClean = removeNewline ( expected ) ; String receivedClean = removeNewline ( received ) ; if ( ! expectedClean . equals ( receivedClean ) ) { log . error ( "Expected: " + expectedClean ) ; log . error ( "Received: " + receivedClean ) ; ScopeTestHelper . assertEquals ( "Mismatch " , expected , received ) ; } }
target:  Compare two strings removing all newline characters.