*
* @throws Exception If an unexpected error occurs
*/
public void testRandomAccess() throws Exception
{
JarArchive jar = new DefaultJarArchive(getTestInput(
"org/apache/cactus/integration/ant/deployment/randomaccess.jar").getAbsolutePath());
assertContains(jar.getResource("firstEntry.txt"), "firstEntry");
assertContains(jar.getResource("secondEntry.txt"), "secondEntry");
assertContains(jar.getResource("secondEntry.txt"), "secondEntry");
assertContains(jar.getResource("firstEntry.txt"), "firstEntry");
}