* {@link org.jboss.system.deployers.LegacyPrefixDeploymentContextComparator}
* javadoc.
*/
public void testJavaDocExample()
{
DeploymentContext first = new TestDeploymentContext("test.sar");
DeploymentContext second = new TestDeploymentContext("component.ear");
DeploymentContext third = new TestDeploymentContext("001test.jar");
DeploymentContext fourth = new TestDeploymentContext("5test.rar");
DeploymentContext fifth = new TestDeploymentContext("5foo.jar");
DeploymentContext sixth = new TestDeploymentContext("120bar.jar");
assertTrue("Second comes before first", comparator.compare(first, second) < 0);
assertTrue("Third comes before second", comparator.compare(second, third) < 0);
assertTrue("Fourth comes before third", comparator.compare(third, fourth) < 0);
assertTrue("Fifth comes before fourth", comparator.compare(fourth, fifth) < 0);