'Check that a locator of type C{locatorClass} finds a responder
for command named I{simple} and that the found responder answers
with the C{expected} result to a C{SimpleGreeting<"ni hao", 5>}
command.'

def _checkSimpleGreeting(self, locatorClass, expected):

    locator = locatorClass()
    responderCallable = locator.locateResponder('simple')
    result = responderCallable(amp.Box(greeting='ni    hao', cookie='5'))
    def done(values):
        self.assertEqual(values, amp.AmpBox(cookieplus=intToBytes(expected)))
    return result.addCallback(done)
