### Question:
ContextItem extends BaseItem { protected static String canonicalize(String key) { if (key.startsWith(PREFIX)) { return key; } return PREFIX + key; } 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 testCanonicalizeHappyCase() { String test = "coolkey"; String expected = ContextItem.PREFIX + test; assertEquals(expected, ContextItem.canonicalize(test)); }
@Test void testCanonicalizeAlreadyPrefixed() { String expected = ContextItem.PREFIX + "BATS"; assertEquals(expected, ContextItem.canonicalize(expected)); }