Basil pesto isn't just for pasta. We found a way to imbue chicken with basil and garlic that would hold up on the grill.

How did we get enough flavor into the chicken? We used homemade pesto, which tastes stronger and fresher than store-bought. We added the pesto base to separate mixtures for marinating, stuffing, and saucing the chicken.

We found that bone-in chicken breasts had the most flavor. We cut pockets in them to fill with pesto and then marinated the stuffed breasts in more pesto. We added a third dose of pesto in a sauce to serve with the chicken after it was grilled.

America's Test Kitchen provided this article to The Associated Press.

GRILLED PESTO CHICKEN

Servings: 4

4 cups fresh basil leaves

3/4 cup extra-virgin olive oil

5 garlic cloves, peeled

1 1/2 tablespoons lemon juice

Salt and pepper

2 ounces Parmesan cheese, grated (1 cup)

4 (12-ounce) bone-in split chicken breasts, trimmed

Process basil, 1/2 cup oil, garlic, lemon juice, and 3/4 teaspoon salt in food processor until smooth, about 1 minute, scraping down bowl as needed. Transfer 1/4 cup pesto to large bowl and set aside for marinade. Add Parmesan to pesto left in processor and pulse to incorporate, about 3 pulses; transfer 1/4 cup pesto to small bowl and set aside for stuffing. Add remaining 1/4 cup oil to pesto left in processor and pulse to incorporate, about 3 pulses; set aside for serving.

Starting on thick side of breast, closest to breastbone, cut horizontal pocket in each breast, stopping 1/2 inch from edge so halves remain attached. Season chicken, inside and out, with salt and pepper. Place 1 tablespoon pesto reserved for stuffing in each pocket. Tie each chicken breast with 2 pieces kitchen twine to secure. In large bowl, rub chicken with pesto reserved for marinade, cover, and refrigerate for 1 hour.

For a charcoal grill: Open bottom vent completely. Light large chimney starter filled with charcoal briquettes (6 quarts). When top coals are partially covered with ash, pour evenly over half of grill. Set cooking grate in place, cover, and open lid vent completely. Heat grill until hot, about 5 minutes.

For a gas grill: Turn all burners to high, cover, and heat grill until hot, about 15 minutes. Turn all burners to medium-low. (Adjust burners as needed to maintain grill temperature of 350 degrees.)

Clean and oil cooking grate. Place chicken skin side up on grill (cooler side if using charcoal). Cover and cook until chicken registers 155 degrees, 25 to 35 minutes.

Slide chicken to hotter side of grill (if using charcoal) or turn all burners to high (if using gas), and flip skin side down. Cover and cook until well browned and chicken registers 160 degrees, 5 to 10 minutes.