### Question:
AlertTemplateFactory { public static AlertTemplate getMessageTemplate() { return new DefaultHTMLTemplate(); } private  AlertTemplateFactory(); static AlertTemplate getMessageTemplate();  }### Answer:
@Test public void testGetMessageTemplate(){ PowerMockito.mockStatic(PropertyUtils.class); AlertTemplate defaultTemplate = AlertTemplateFactory.getMessageTemplate(); assertTrue(defaultTemplate instanceof DefaultHTMLTemplate); }
@Test public void testGetMessageTemplateException(){ AlertTemplate defaultTemplate = AlertTemplateFactory.getMessageTemplate(); assertTrue(defaultTemplate instanceof DefaultHTMLTemplate); }