DefaultNameParser implements NameParser { @Override public Name parse(String name) throws NamingException { return new CompositeName(name); }  @Override Name parse(String name);  }
@Test void testParse() throws Exception { DefaultNameParser parser = new DefaultNameParser(); Name result = parser.parse("MyName"); assertNotNull(result); }