### Question:
DefaultDeploymentConfiguration extends
        AbstractDeploymentConfiguration { protected String getSystemProperty(String parameterName) { String val = null; String pkgName; final Package pkg = systemPropertyBaseClass.getPackage(); if (pkg != null) { pkgName = pkg.getName(); } else { final String className = systemPropertyBaseClass.getName(); int index = className.lastIndexOf('.'); if (index >= 0) { pkgName = className.substring(0, index); } else { pkgName = null; } } if (pkgName == null) { pkgName = ""; } else { pkgName += '.'; } val = System.getProperty(pkgName + parameterName); if (val != null) { return val; } val = System.getProperty(pkgName + parameterName.toLowerCase()); if (val != null) { return val; } val = System.getProperty("vaadin." + parameterName); return val; } DefaultDeploymentConfiguration(Class<?> systemPropertyBaseClass,
            Properties initParameters); @Override String getApplicationOrSystemProperty(String propertyName,
            String defaultValue); String getApplicationProperty(String parameterName); @Override boolean isProductionMode(); @Override boolean isXsrfProtectionEnabled(); @Override int getResourceCacheTime(); @Override int getHeartbeatInterval(); @Override boolean isCloseIdleSessions(); @Override boolean isSyncIdCheckEnabled(); @Override boolean isSendUrlsAsParameters(); @Override PushMode getPushMode(); @Override Properties getInitParameters(); @Override @Deprecated LegacyProperyToStringMode getLegacyPropertyToStringMode(); static final int DEFAULT_RESOURCE_CACHE_TIME; static final int DEFAULT_HEARTBEAT_INTERVAL; static final boolean DEFAULT_CLOSE_IDLE_SESSIONS; static final LegacyProperyToStringMode DEFAULT_LEGACY_PROPERTY_TO_STRING; static final boolean DEFAULT_SYNC_ID_CHECK; static final boolean DEFAULT_SEND_URLS_AS_PARAMETERS; }### Answer:
@Test public void testGetSystemPropertyForDefaultPackage() throws ClassNotFoundException { Class<?> clazz = Class.forName("ClassInDefaultPackage"); String value = "value"; String prop = "prop"; System.setProperty(prop, value); DefaultDeploymentConfiguration config = new DefaultDeploymentConfiguration( clazz, new Properties()); Assert.assertEquals(value, config.getSystemProperty(prop)); }
@Test public void testGetSystemProperty() throws ClassNotFoundException { String value = "value"; String prop = "prop"; System.setProperty(DefaultDeploymentConfigurationTest.class .getPackage().getName() + '.' + prop, value); DefaultDeploymentConfiguration config = new DefaultDeploymentConfiguration( DefaultDeploymentConfigurationTest.class, new Properties()); Assert.assertEquals(value, config.getSystemProperty(prop)); }