First of all you have to sown seed either in pots or other than after seedling emergence or at three to four leaf stage seedling inoculated with second stage juveniles (infective stage).
At maturity uproot plants and see the galls on roots. If galls present on roots, plant is susceptible if no galls plant is resistant.
There are a couple of ways to test a plant's resistance or susceptibility to Meloidogyne, a root-knot nematode:
Greenhouse bioassays: This is a common method where researchers inoculate test plants with a known number of Meloidogyne juveniles, usually in the second stage. These juveniles are infective and can penetrate plant roots. After a certain period, researchers compare the growth of inoculated plants with control plants that weren't exposed to nematodes. Root galling (knots caused by nematode feeding) is a key indicator of susceptibility. Additionally, researchers might measure other plant growth parameters like shoot and root weight.
Molecular markers: In some cases, scientists can use molecular markers to identify genes associated with resistance to Meloidogyne. This approach can be quicker than bioassays, but it's still important to validate resistance in greenhouse or field settings.