def METHOD_NAME(self):
    """
    L{ResolverBase.query} returns a L{Deferred} which fails with
    L{NotImplementedError} when called with a query of a type not present in
    its C{typeToMethod} dictionary.
    """
    resolver = ResolverBase()
    resolver.typeToMethod = {}
    query = Query(name=b"example.com", type=12345)
    queryDeferred = resolver.query(query, 123)
    result = []
    queryDeferred.addBoth(result.append)
    self.assertIsInstance(result[0], Failure)
    result[0].trap(NotImplementedError)