### Question:
EnvironmentUtils { static String getProperty(final String variableName, final String defaultValue) { val value = getProperty(variableName); if (StringUtils.isNotBlank(value)) { return value; } return defaultValue; } private  EnvironmentUtils();   }### Answer:
@Test void getPropertyFromSystem() { System.setProperty("testVariable", "example"); String value = EnvironmentUtils.getProperty("testVariable"); assertEquals("example", value); }
@Test void getPropertyFromSecurity() { Security.setProperty("testVariable", "example"); String value = EnvironmentUtils.getProperty("testVariable"); assertEquals("example", value); }
@Test void getSecurityPropertyWithDefaultValue() { Security.setProperty("testVariable", "example"); String value = EnvironmentUtils.getProperty("otherVariable", "default"); assertEquals("default", value); }
@Test void getSystemPropertyWithDefaultValue() { System.setProperty("testVariable", "example"); String value = EnvironmentUtils.getProperty("testVariable", "default"); assertEquals("example", value); }
@Test void getPropertyReturnBlankForNotFoundVariable() { String value = EnvironmentUtils.getProperty("unknown"); assertEquals("", value); }