### Question:
PointerItem extends BaseItem { public Set<ContextItem> contextItems() { HashSet<ContextItem> contextItems = new HashSet<>(context.size()); for (Map.Entry<String, AttributeValue> entry : context.entrySet()) { contextItems.add(ContextItem.fromContext(entry.getKey(), partitionKey)); } return contextItems; } protected  PointerItem(UuidKey pointerTarget, Map<String, AttributeValue> context); static Map<String, Condition> filterFor(); static PointerItem generate(); static PointerItem generate(Map<String, String> context); static PointerItem fromKeyAndContext(String key, Map<String, String> context); Map<String, String> getContext(); @Override Map<String, AttributeValue> toItem(); static Map<String, AttributeValue> atKey(String key); static Map<String, AttributeValue> atKey(AttributeValue key); static PointerItem fromItem(Map<String, AttributeValue> item); Set<ContextItem> contextItems();  }### Answer:
@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()); }