/**
  * Test method for {@link JavadocBlockParserUtil#fetchPrimitiveType(JavadocScanner,
  * java.util.Set)}.
  */
 @Test
 public void testFetchPrimitiveType() {
   {
     DefaultJavadocScanner scanner = string("int");
     IrDocBasicType elem = JavadocBlockParserUtil.fetchPrimitiveType(scanner, null);
     assertNotNull(elem);
     assertEquals(IrBasicTypeKind.INT, elem.getTypeKind());
     assertSameLocation(0, "int".length(), elem.getLocation());
     assertEquals(EOF, scanner.lookahead(0).getKind());
   }
   {
     DefaultJavadocScanner scanner = string("void");
     IrDocBasicType elem = JavadocBlockParserUtil.fetchPrimitiveType(scanner, null);
     assertNull(elem);
     assertEquals(IDENTIFIER, scanner.lookahead(0).getKind());
   }
 }