@Test
public void testOrderCircularDependencyException() throws Exception {

	List<WebXMLDefinition> webXMLDefinitions = new ArrayList<>();
	webXMLDefinitions.add(
		loadWebXMLDefinition(
			"dependencies/custom-web-fragment-circular-1.xml"));
	webXMLDefinitions.add(
		loadWebXMLDefinition(
			"dependencies/custom-web-fragment-circular-2.xml"));
	WebXMLDefinition webXMLDefinition = loadWebXMLDefinition(
		"dependencies/custom-web.xml");
	boolean threwOrderCircularDependencyException = false;
	try {
		OrderUtil.getOrderedWebXMLDefinitions(
			webXMLDefinitions, webXMLDefinition.getAbsoluteOrderingNames());
	}
	catch (Exception exception) {
		if (exception instanceof OrderCircularDependencyException) {
			threwOrderCircularDependencyException = true;
		}
	}
	Assert.assertTrue(threwOrderCircularDependencyException);
}