ProjectService { public Properties getProjectProperties() { File projectProperties = fileBrowserService.findFileInPath(new File(project.getProjectHome()), "citrus.properties", true); try { if (projectProperties != null) { return PropertiesLoaderUtils.loadProperties(new FileSystemResource(projectProperties)); } } catch (IOException e) { log.warn("Unable to read default Citrus project properties from file resource", e); } return new Properties(); }  @PostConstruct void loadDefaultProject(); Project load(String projectHomeDir); Project create(Repository repository); Project create(MavenArchetype archetype); File getSpringXmlApplicationContextFile(); File getSpringJavaConfigFile(); boolean hasSpringXmlApplicationContext(); boolean hasSpringJavaConfig(); void update(Project project); void saveProjectInfo(Project project); Properties getProjectProperties(); boolean validateProject(Project project); Project getActiveProject(); void closeActiveProject(); void setActiveProject(Project project); void addConnector(); void removeConnector(); List<Module> getModules(); void add(Module module); void remove(Module module); String getCloneDownloadUrl(Repository repository); void setFileBrowserService(FileBrowserService fileBrowserService); void setSpringBeanService(SpringBeanService springBeanService); void setSpringJavaConfigService(SpringJavaConfigService springJavaConfigService); void setEnvironment(Environment environment); String[] getRecentProjects(); void setProject(Project project);  }
@Test(dataProvider = "projectProvider") public void testGetProjectProperties(String projectHome, String description, Map<String, String> properties, boolean connectorActive) throws Exception { Project testProject = new Project(new ClassPathResource(projectHome).getFile().getCanonicalPath()); projectService.setActiveProject(testProject); Properties projectProperties = projectService.getProjectProperties(); Assert.assertEquals(projectProperties.size(), properties.size()); for (Map.Entry<String, String> propEntry : properties.entrySet()) { Assert.assertEquals(projectProperties.get(propEntry.getKey()), propEntry.getValue()); } }