### Question:
Constant { public static String getSystemProperty(String property, String def) { Check.notNull(property); try { return System.getProperty(property, def); } catch (final SecurityException exception) { Verbose.exception(exception, new StringBuilder(Constant.HUNDRED).append(ERROR_PROPERTY) .append(property) .append(" (") .append(exception.getClass().getName()) .append(')') .toString()); return def; } } private  Constant(); static String getSystemProperty(String property, String def); static final String ENGINE_NAME; static final String ENGINE_AUTHOR; static final String ENGINE_WEBSITE; static final Version ENGINE_VERSION; static final String XML_HEADER; static final String XML_PREFIX; static final String EMPTY_STRING; static final String TAB; static final String QUOTE; static final String SLASH; static final String DOT; static final String DOUBLE_DOT; static final String SPACE; static final String UNDERSCORE; static final String STAR; static final String AT; static final String PERCENT; static final String UNIT_RATE; static final String TYPE_JAR; static final int MEGA_BYTE; static final int MAX_PORT; static final int MAX_DEGREE; static final int THOUSAND; static final int HUNDRED; static final int DECADE; static final int ANGLE_MAX; static final int UNSIGNED_BYTE; static final int BYTE_4; static final int BYTE_3; static final int BYTE_2; static final int BYTE_1; static final double EXTRP; static final double HALF; static final long ONE_SECOND_IN_MILLI; static final long ONE_SECOND_IN_NANO; static final double NANO_TO_MILLI; static final double GRAVITY_EARTH; static final double GRAVITY_MARS; static final double GRAVITY_MOON; static final String FONT_SANS_SERIF; static final String FONT_SERIF; static final String FONT_DIALOG; }### Answer:
@Test void testSystemPropertyDefault() { assertEquals("default", Constant.getSystemProperty("null", "default")); }
@Test void testSystemPropertyExists() { assertNotEquals("default", Constant.getSystemProperty("java.io.tmpdir", "default")); }
@Test void testSystemPropertySecurityException() { final SecurityManager old = System.getSecurityManager(); Verbose.info("*********************************** EXPECTED VERBOSE ***********************************"); System.setSecurityManager(new SecurityManagerMock(false)); try { assertEquals("default", Constant.getSystemProperty("security", "default")); } finally { System.setSecurityManager(old); } Verbose.info("****************************************************************************************"); }