@Test
public void testSuccessfulPlaceholderResolution() {

    assertThat(underTest.resolve("{{ header:one }}"))
            .contains(KNOWN_HEADERS.get("one"));
    assertThat(underTest.resolve("{{ header:two }}"))
            .contains(KNOWN_HEADERS.get("two"));
    assertThat(underTest.resolve("{{ thing:id }}"))
            .contains(THING_ID.toString());
    assertThat(underTest.resolve("{{ thing:name }}"))
            .contains(THING_NAME);
    assertThat(underTest.resolve("{{ topic:full }}"))
            .contains(KNOWN_TOPIC);
    assertThat(underTest.resolve("{{ topic:entityId }}"))
            .contains(THING_NAME);
    // verify different whitespace
    assertThat(underTest.resolve("{{topic:entityId }}"))
            .contains(THING_NAME);
    assertThat(underTest.resolve("{{topic:entityId}}"))
            .contains(THING_NAME);
    assertThat(underTest.resolve("{{        topic:entityId}}"))
            .contains(THING_NAME);
}