@Test
public void getConfigurationFromStream() throws ConfigurationException,
		IOException {

	InputStream stream = null;
	try {
		stream = this.getClass().getClassLoader()
				.getResourceAsStream("elk.properties");
		BaseConfiguration config = new ConfigurationFactory()
				.getConfiguration(stream, "elk", BaseConfiguration.class);
		assertEquals(3, config.getParameterNames().size());
	} finally {
		IOUtils.closeQuietly(stream);
	}
}