@Test
public void nullOnEmptyPath() throws Exception {

  JsonNode model = new ObjectMapper().readTree("{\"partitionPath\":\"\"}");
  @SuppressWarnings("resource")
  Supplier<Path> pathSupplier = new PartitionPathSupplier(() -> model);
  assertThat(pathSupplier.get(), is(nullValue()));
}