@Test
public void testLoadJndiUrl() throws IOException, NamingException {

    LOG.info("testLoadJndiProperties");
    final Properties props = new Properties();
    GuiceUtils.loadUrl(props, "jndi:java:comp/env" + GuiceUtils.JNDI_PROPETY_PREFIX_PARAM + "speedtools");
    Assert.assertEquals(4, props.size());
    LOG.info("testLoadJndiProperties passed with prefix");
    props.clear();
    GuiceUtils.loadUrl(props, "jndi:java:comp/env");
    Assert.assertEquals(6, props.size());
    LOG.info("testLoadJndiProperties passed without prefix");
    props.clear();
    GuiceUtils.loadUrl(props, "jndi:java:comp");
    Assert.assertEquals(0, props.size());
    LOG.info("testLoadJndiProperties passed without properties");
}