### Question:
SyslogdConfigFactory implements SyslogdConfig { public synchronized HideMessage getHideMessages() { return m_config.getHideMessage(); } private  SyslogdConfigFactory(String configFile);  SyslogdConfigFactory(InputStream stream); static synchronized void init(); static synchronized void reload(); static synchronized SyslogdConfig getInstance(); static synchronized void setInstance(SyslogdConfig config); synchronized int getSyslogPort(); synchronized String getListenAddress(); synchronized boolean getNewSuspectOnMessage(); synchronized String getForwardingRegexp(); synchronized int getMatchingGroupHost(); synchronized int getMatchingGroupMessage(); synchronized String getParser(); synchronized UeiList getUeiList(); synchronized HideMessage getHideMessages(); synchronized String getDiscardUei();  }### Answer:
@Test public void testHideTheseMessages() { for (HideMatch hide : m_factory.getHideMessages().getHideMatchCollection()) { boolean typeOk = ( hide.getMatch().getType().equals("substr") || hide.getMatch().getType().equals("regex") ); Assert.assertTrue(typeOk); if (hide.getMatch().getType().equals("substr")) { Assert.assertEquals("TESTHIDING", hide.getMatch().getExpression()); } else if (hide.getMatch().getType().equals("regex")) { Assert.assertEquals("[Dd]ouble[Ss]ecret", hide.getMatch().getExpression()); } } }