@Test
public void testFormatForCustomObjectReplacesLineFeedsWithTheirPrintableCounterpartEvenIfWithText() {

    // Given:
    final TestToString parameter = new TestToString("1\n2\n3");
    // When:
    String result = underTest.format(parameter);
    // Then:
    assertThat(result).isEqualTo("1\\n2\\n3");
}