@Test
public void testFormatForCustomObjectReplacesCarriageReturnsAndLineFeedsWithTheirPrintableCounterpart() {

    // Given:
    final TestToString parameter = new TestToString(
            "A very\r\nlong text\nwith multiple\rdifferent newline\n\rvariations.");
    // When:
    String result = underTest.format(parameter);
    // Then:
    assertThat(result).isEqualTo("A very\\r\\nlong text\\nwith multiple\\rdifferent newline\\n\\rvariations.");
}