### Question:
DefaultHTMLTemplate implements AlertTemplate { @Override public String getMessageFromTemplate(String content, ShowType showType,boolean showAll) { switch (showType){ case TABLE: return getTableTypeMessage(content,showAll); case TEXT: return getTextTypeMessage(content,showAll); default: throw new IllegalArgumentException(String.format("not support showType: %s in DefaultHTMLTemplate",showType)); } }  @Override String getMessageFromTemplate(String content, ShowType showType,boolean showAll); static final Logger logger; }### Answer:
@Test public void testGetMessageFromTemplate(){ DefaultHTMLTemplate template = new DefaultHTMLTemplate(); String tableTypeMessage = template.getMessageFromTemplate(list2String(), ShowType.TABLE,true); assertEquals(tableTypeMessage,generateMockTableTypeResultByHand()); String textTypeMessage = template.getMessageFromTemplate(list2String(), ShowType.TEXT,true); assertEquals(textTypeMessage,generateMockTextTypeResultByHand()); }