ConfigurationSource { public static Configuration createFromProfile(final String profileId) { return createFromPropertiesResource(getSpecificProfileConfigPath(profileId)); }  static Configuration createFromDefaultProfile(); static Configuration createFromProfile(final String profileId); static Configuration createFromPropertiesResource(final File propertiesFile);  }
@Test void shouldCreateFromProfile() { new MockUp<GazePlayDirectories>() { @Mock public File getUserProfileDirectory(String id) { return resourcesFolder; } }; Configuration result = ConfigurationSource.createFromProfile("test"); assertEquals(900, result.getFixationLength()); }