* @throws Exception
*/
@Test
public void lenientPackageResourceMatching() throws Exception
{
ResourceReference invalidResource = new PackageResourceReference(PackageResourceTest.class,
"i_do_not_exist.txt", Locale.ENGLISH, null, null);
assertNotNull(
"resource packaged3.txt SHOULD be available as a packaged resource even if it doesn't exist",
invalidResource.getResource());
assertTrue(PackageResource.exists(PackageResourceTest.class, "packaged1.txt", null, null,
null));
assertTrue(PackageResource.exists(PackageResourceTest.class, "packaged1.txt", Locale.CHINA,
null, null));