@Test
public void testBadName() throws Exception {

  Configuration conf = new Configuration();
  try {
    WritableName.getClass("unknown_junk",conf);
    assertTrue(false);
  } catch(IOException e) {
    assertTrue(e.getMessage().matches(".*unknown_junk.*"));
  }
}