@Test
public void unionValue() throws Exception {

  doReturn(TextNode.valueOf("bar")).when(obfuscator).apply(TextNode.valueOf("foo"));
  JsonNode result = underTest.transform(f1Unnested, singletonList("/0/f1"));
  assertThat(result, is(mapper.createObjectNode().put("f1", "bar")));
}