assertNull(context.getObject("this"));
}
public void testGETKnownIdReturnsItem() {
PathInfoParser.setContext("123", context);
items.put("123", new Item("123", "Frank"));
rest.GET(context);
Object object = context.getObject("this");
assertTrue(object instanceof Item);
Item item = (Item)object;
assertEquals("123", item.getId());
assertEquals("Frank", item.getName());
}