}
@Factory
public static Matcher<String> endsWithStripNewLines(final String expected) {
final String strippedExpected = StringUtils.stripNewLines(expected);
return new StringEndsWith(strippedExpected) {
@Override
public boolean matchesSafely(final String actual) {
return super.matchesSafely(StringUtils.stripNewLines(actual));
}