@Test
public void testAggregateResourceBundlesInstructionWebContextPath()
	throws Exception {

	ResourceBundleLoaderAnalyzerPlugin resourceBundleLoaderAnalyzerPlugin =
		new ResourceBundleLoaderAnalyzerPlugin();
	InputStream inputStream =
		ResourceBundleLoaderAnalyzerPluginTest.class.getResourceAsStream(
			"dependencies/blade.language.web.jar");
	try (Jar jar = new Jar("dot", inputStream);
		Analyzer analyzer = new Analyzer()) {
		analyzer.setBundleSymbolicName("blade.language.web");
		analyzer.setJar(jar);
		analyzer.setProperty(
			"-liferay-aggregate-resource-bundles", "blade.language");
		analyzer.setProperty("Web-ContextPath", "/blade-language-web");
		Assert.assertTrue(
			resourceBundleLoaderAnalyzerPlugin.analyzeJar(analyzer));
		Parameters provideCapabilityHeaders = new Parameters(
			analyzer.getProperty(Constants.PROVIDE_CAPABILITY));
		List<Map.Entry<String, Attrs>> provides = new ArrayList<>(
			provideCapabilityHeaders.entrySet());
		Map.Entry<String, Attrs> entry = provides.get(0);
		Attrs attrs = entry.getValue();
		Assert.assertEquals(
			"blade-language-web", attrs.get("servlet.context.name"));
	}
}