### Question:
ItemServiceImpl implements ItemService { @Override public List<Item> getItemid(String id) { List<Item> items; items = em.createQuery( "SELECT a FROM Item AS a" + " WHERE a.id = :id" , Item.class).setParameter("id", id).getResultList(); return items; }  @Override List<Item> getBySearch(String keyword, String category, String state, float sprice, float fprice, int p); @Override List<Item> getHighlight(String user); @Override List<Item> getAll(); @Override String create(Item i); @Override void removeItem(Item item); @Override int updateItem(Item item); @Override List<Item> getItem(String usrID); @Override List<Item> getItemid(String id); void addItem(Item item);  }### Answer:
@Test void getItemidTest() { String id = UUID.randomUUID().toString(); Item item = new Item(id, "18248", "uifei", 4, "livre", "doenfr", "neuf",""); em.persist(item); assertEquals(item, itemserviceimpl.getItemid(id).get(0)); }