def METHOD_NAME(self):
    """Check that the internally generated NeighborList is correct."""
    N = 1000
    L = 10
    box, positions = freud.data.make_random_system(L, N)
    query_args = dict(r_max=2.0, exclude_ii=True)
    comp = freud.order.SolidLiquid(6, q_threshold=0.7, solid_threshold=6).compute(
        (box, positions), neighbors=query_args
    )
    aq = freud.locality.AABBQuery(box, positions)
    nlist = aq.query(positions, query_args).toNeighborList()
    npt.assert_array_equal(nlist[:], comp.nlist[:])