@Test
public void testOrderCustomWebFragments1() throws Exception {

	List<WebXMLDefinition> webXMLDefinitions = new ArrayList<>();
	webXMLDefinitions.add(
		loadWebXMLDefinition("dependencies/custom-web-fragment-3.xml"));
	webXMLDefinitions.add(
		loadWebXMLDefinition("dependencies/custom-web-fragment-1.xml"));
	webXMLDefinitions.add(
		loadWebXMLDefinition("dependencies/custom-web-fragment-2.xml"));
	WebXMLDefinition webXMLDefinition = loadWebXMLDefinition(
		"dependencies/custom-web-absolute-ordering-1.xml");
	List<WebXMLDefinition> orderedWebXMLDefinitions =
		OrderUtil.getOrderedWebXMLDefinitions(
			webXMLDefinitions, webXMLDefinition.getAbsoluteOrderingNames());
	Assert.assertEquals(
		orderedWebXMLDefinitions.toString(), 3,
		orderedWebXMLDefinitions.size());
	WebXMLDefinition firstWebXMLDefinition = orderedWebXMLDefinitions.get(
		0);
	Assert.assertEquals(
		"fragment2", firstWebXMLDefinition.getFragmentName());
	WebXMLDefinition secondWebXMLDefinition = orderedWebXMLDefinitions.get(
		1);
	Assert.assertEquals(
		"fragment1", secondWebXMLDefinition.getFragmentName());
	WebXMLDefinition thirdWebXMLDefinition = orderedWebXMLDefinitions.get(
		2);
	Assert.assertEquals(
		"fragment3", thirdWebXMLDefinition.getFragmentName());
}