@Test
public void testUnescapePrintf() {

  assertThat(unescapePrintf("")).isEqualTo("");
  assertThat(unescapePrintf("Hello World")).isEqualTo("Hello World");
  assertThat(unescapePrintf("Hello %% World")).isEqualTo("Hello % World");
  assertThat(unescapePrintf("Hello %%%% World")).isEqualTo("Hello %% World");
  assertThat(unescapePrintf("%% 'Hello {%%}{%%} World' %%"))
      .isEqualTo("% 'Hello {%}{%} World' %");
}