Validation of data and JUnit test for ResourcesManager