Configuration config = createDefaultConfig();
// anything so the parsing will work
config.getConnectorConfigurations().put("netty", new TransportConfiguration());
JMSServerConfigParser parser = new JMSServerConfigParserImpl();
String conf = "hornetq-jms-for-JMSServerDeployerTest.xml";
URL confURL = Thread.currentThread().getContextClassLoader().getResource(conf);
InputStream stream = confURL.openStream();
JMSConfiguration jmsconfig = parser.parseConfiguration(stream);
stream.close();
ConnectionFactoryConfiguration cfConfig = jmsconfig.getConnectionFactoryConfigurations().get(0);
assertEquals(1234, cfConfig.getClientFailureCheckPeriod());