### Question:
EasyAdapterUtil { public static Integer parseItemLayoutId(Class<? extends ItemViewHolder> itemViewHolderClass) { Integer itemLayoutId = ClassAnnotationParser.getLayoutId(itemViewHolderClass); if (itemLayoutId == null) { throw new LayoutIdMissingException(); } return itemLayoutId; }  static ItemViewHolder createViewHolder(View view, Class<? extends ItemViewHolder> itemViewHolderClass); static Integer parseItemLayoutId(Class<? extends ItemViewHolder> itemViewHolderClass);  }### Answer:
@Test public void testParseItemLayoutId() throws Exception { Integer layoutId = EasyAdapterUtil.parseItemLayoutId(ItemViewHolderWithLayoutId.class); Assert.assertTrue(layoutId.equals(LAYOUT_ID)); }
@Test public void testParseItemLayoutIdWithoutLayoutId() throws Exception { LayoutIdMissingException exception = null; try { EasyAdapterUtil.parseItemLayoutId(ItemViewHolderWithoutLayoutId.class); } catch (LayoutIdMissingException e) { exception = e; } Assert.assertNotNull(exception); }