@Test
public void exampleUsage() {

  Message originalMessage = SimpleMessage.newBuilder().setName("bob").build();
  DynamicMessage message = dynamic(originalMessage);
  TemplateEvaluator evaluator =
      new TemplateEvaluator(
          originalMessage.getDescriptorForType(),
          fragments(staticFragment("foo.bar/"), dynamicFragment("$.name")));
  assertThat(evaluator.evaluate(message), is("foo.bar/bob"));
}