class ServiceConfig {

	public static Configuration getConfiguration(Class<?> clazz) throws ConfigurationException {
		String className = clazz.getName();
		_log.info("Class name is " + className);
		return getConfiguration(className);
	}

}

class ServiceConfigTest {

	private static final String baseDir;

	@Test(expected=NoSuchElementException.class)
	// Properties files can only have simple keys. This doesn't work!
	public void testGetConfigurationClassComplexKey2() throws ConfigurationException {

		Configuration config = ServiceConfig.getConfiguration(getClass());
		assertEquals("six", config.getString("http://one.two/three?four=five"));
	}

}