@Test
public void testFormatForCustomObjectReplacesCarriageReturnsWithTheirPrintableCounterpartEvenIfWithText() {

    // Given:
    final TestToString parameter = new TestToString("test\rtest\r");
    // When:
    String result = underTest.format(parameter);
    // Then:
    assertThat(result).isEqualTo("test\\rtest\\r");
}