### Question:
Declarations { public TypeDeclaration newPrimitiveBooleanTypeDeclaration() { TypeMirror type = ctx.getMoreTypes().getTypeMirror(boolean.class); return newTypeDeclaration(type, null); } Declarations(Context ctx); TypeDeclaration newUnknownTypeDeclaration(); TypeDeclaration newPrimitiveBooleanTypeDeclaration(); TypeDeclaration newTypeDeclaration(Class<?> clazz); TypeDeclaration newTypeDeclaration(TypeMirror type); TypeDeclaration newTypeDeclaration(TypeElement typeElement);  }### Answer:
@Test void newPrimitiveBooleanTypeDeclaration() { addProcessor( new TestProcessor() { @Override protected void run() { TypeDeclaration typeDeclaration = ctx.getDeclarations().newPrimitiveBooleanTypeDeclaration(); assertNotNull(typeDeclaration); TypeMirror booleanType = ctx.getMoreTypes().getPrimitiveType(TypeKind.BOOLEAN); assertTrue(ctx.getMoreTypes().isSameType(typeDeclaration.getType(), booleanType)); } }); }