EmailTemplateDaoImpl implements EmailTemplateDao { public static EmailTemplateDao getInstance() { if (emailTemplateDao == null) { emailTemplateDao = new EmailTemplateDaoImpl(); } return emailTemplateDao; }  static EmailTemplateDao getInstance(); @Override String getTemplate(String templateName);  }
@Test public void testGetInstance(){ Assert.assertEquals(emailTemplateDao.getClass().getSimpleName(),EmailTemplateDaoImpl.getInstance().getClass().getSimpleName()); }