@Test
public void testGetJarPathForClassNotFound() throws ClassNotFoundException, IOException {

  try {
    // This will throw an exception because this class is not in a jar when being run.
    Jars.getJarPathForClass(TestJars.class);
    fail("ClassNotFoundException");
  } catch (ClassNotFoundException ce) {
    assertEquals("Unable to find containing jar for class org.kiji.mapreduce.util.TestJars",
    ce.getMessage());
  }
}