### Question:
Environment { public Optional<Path> getLogDir() { return getPath("cryptomator.logDir").map(this::replaceHomeDir); } @Inject  Environment(); boolean useCustomLogbackConfig(); Stream<Path> getSettingsPath(); Stream<Path> getIpcPortPath(); Stream<Path> getKeychainPath(); Optional<Path> getLogDir(); Optional<Path> getMountPointsDir(); Optional<String> getBuildNumber(); int getMinPwLength();  }### Answer:
@Test @DisplayName("cryptomator.logDir=/foo/bar") public void testAbsoluteLogDir() { System.setProperty("cryptomator.logDir", "/foo/bar"); Optional<Path> logDir = env.getLogDir(); Assertions.assertTrue(logDir.isPresent()); }
@Test @DisplayName("cryptomator.logDir=~/foo/bar") public void testRelativeLogDir() { System.setProperty("cryptomator.logDir", "~/foo/bar"); Optional<Path> logDir = env.getLogDir(); Assertions.assertTrue(logDir.isPresent()); Assertions.assertEquals(Paths.get("/home/testuser/foo/bar"), logDir.get()); }