@Test
public void getShouldReturnValue() {

  final Config config = ConfigFactory.parseMap(Map.of("foo.bar", "baz"));
  assertThat(ConfigUtil.get(config, config::getString, "foo.bar"), is(Optional.of("baz")));
}