I am mocking a repository with the annotation @mock and then saving some data to the repository in the test class. Is the data really getting stored in the repository? 

In another class when the same data is fetched it is showing not found. How will I test my class if the data is not stored in the repository?