@Test
  public void testFailure() {
    SymlinkTextInputFormat inputFormat = new SymlinkTextInputFormat();

    try {
      inputFormat.getSplits(job, 2);
      fail("IOException expected if no job input paths specified.");
    } catch (IOException e) {
      assertEquals("Incorrect exception message for no job input paths error.",
                   "No input paths specified in job.",
                   e.getMessage());
    }
  }
Scenario: No job input paths.
Expected: IOException with proper message.
ql/src/test/org/apache/hadoop/hive/ql/io/TestSymlinkTextInputFormat.java