@Test
public void mapValue() throws Exception {

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