@Test
public void testGetThemeIdWithServletContext() {

	FrontendTokenDefinitionRegistryImpl
		frontendTokenDefinitionRegistryImpl =
			new FrontendTokenDefinitionRegistryImpl();
	Bundle bundle = Mockito.mock(Bundle.class);
	Mockito.when(
		bundle.getEntry("WEB-INF/liferay-look-and-feel.xml")
	).thenReturn(
		_liferayLookAndFeelXMLURL
	);
	Dictionary<String, String> headers = new HashMapDictionary<>();
	headers.put("Web-ContextPath", "/classic-theme");
	Mockito.when(
		bundle.getHeaders(Mockito.anyString())
	).thenReturn(
		headers
	);
	frontendTokenDefinitionRegistryImpl.portal = new PortalImpl();
	Assert.assertEquals(
		"classic_WAR_classictheme",
		frontendTokenDefinitionRegistryImpl.getThemeId(bundle));
}