Name extends AbstractNode { public String getName(){ return value; } Name(InputStream is); @Override String toString(); String getName();  }
@Test public void test() throws Exception{ String test = "metadata.en_US.lang "; Name name = new Name(getInputStream(test)); String nameVal = name.getName(); assertNotNull(nameVal); assertEquals(test.trim(), nameVal); }