### Question:
ContextItem extends BaseItem { public static ContextItem fromContext(String key, String objectTarget) { UuidKey target = new UuidKey(objectTarget); return new ContextItem(canonicalize(key), target); } protected  ContextItem(String contextKey, UuidKey objectTarget); static QueryRequest queryFor(String contextKey); static ContextItem fromContext(String key, String objectTarget); static ContextItem fromContext(String key, UuidKey objectTarget); static ContextItem fromContext(String key, AttributeValue objectTarget); static ContextItem fromItem(Map<String, AttributeValue> item);  }### Answer:
@Test void testDifferentKeyCapitalizationNotEqual() { UuidKey key = new UuidKey(); String test1 = "sp-m00n-1"; String test2 = "SP-M00N-1"; ContextItem context1 = ContextItem.fromContext(test1, key); ContextItem context2 = ContextItem.fromContext(test2, key); assertNotEquals(context1, context2); assertNotEquals(context1.partitionKey, context2.partitionKey); }
@Test void testBogusTargetKeyThrows() { assertThrows( IllegalArgumentException.class, () -> { ContextItem.fromContext("happy", "garbageTarget"); }); }