  @Test
  void testContextItems() {

    Map<String, String> context = sampleContext();
    PointerItem item = PointerItem.generate(context);
    Set<ContextItem> expectedContextItems = new HashSet<>(context.size());
    for (Map.Entry<String, String> entry : context.entrySet()) {
      ContextItem i = ContextItem.fromContext(entry.getKey(), item.partitionKey);
      expectedContextItems.add(i);
    }
    assertEquals(expectedContextItems, item.contextItems());
  }