public void testFetchName() {
{
DefaultJavadocScanner scanner = string("java.lang.String#length()");
IrDocName elem = JavadocBlockParserUtil.fetchName(scanner, null);
assertNotNull(elem);
assertEquals("java.lang.String", elem.asString());
assertSameLocation(0, "java.lang.String".length(), elem.getLocation());
assertEquals(IrDocElementKind.QUALIFIED_NAME, elem.getKind());
assertEquals(3, elem.asSimpleNameList().size());
assertSameLocation("".length(), "java".length(), elem.asSimpleNameList().get(0).getLocation());