@Test
public void testUnJarWithPattern() throws Exception {

  File unjarDir = getUnjarDir("unjar-pattern");
  // Unjar only a regex
  RunJar.unJar(new File(TEST_ROOT_DIR, TEST_JAR_NAME),
               unjarDir,
               Pattern.compile(".*baz.*"));
  assertFalse("foobar not unpacked",
              new File(unjarDir, TestRunJar.FOOBAR_TXT).exists());
  assertTrue("foobaz unpacked",
             new File(unjarDir, FOOBAZ_TXT).exists());
}