'Test that the Find flow works when specifying proto directly.'

def testFindWithMaxFiles(self):

    client_mock = action_mocks.ActionMock(searching.Find)
    findspec = rdf_client.FindSpec(path_regex='.*', pathspec=rdf_paths.PathSpec(path='/', pathtype=rdf_paths.PathSpec.PathType.OS))
    for s in flow_test_lib.TestFlowHelper(find.FindFiles.__name__, client_mock, client_id=self.client_id, token=self.token, findspec=findspec, iteration_count=3, max_results=7):
        session_id = s
    collection = flow.GRRFlow.ResultCollectionForFID(session_id, token=self.token)
    self.assertEqual(len(collection), 7)
