### Question:
AndroidContextUtil { public void setupProperties(LoggerContext context) { Properties props = new Properties(); props.setProperty(CoreConstants.DATA_DIR_KEY, getFilesDirectoryPath()); final String extDir = getMountedExternalStorageDirectoryPath(); if (extDir != null) { props.setProperty(CoreConstants.EXT_DIR_KEY, extDir); } props.setProperty(CoreConstants.PACKAGE_NAME_KEY, getPackageName()); props.setProperty(CoreConstants.VERSION_CODE_KEY, getVersionCode()); props.setProperty(CoreConstants.VERSION_NAME_KEY, getVersionName()); context.putProperties(props); } AndroidContextUtil();  AndroidContextUtil(ContextWrapper contextWrapper); void setupProperties(LoggerContext context); String getMountedExternalStorageDirectoryPath(); @TargetApi(8) @SuppressWarnings("deprecation") String getExternalStorageDirectoryPath(); @TargetApi(8) String getExternalFilesDirectoryPath(); String getCacheDirectoryPath(); String getExternalCacheDirectoryPath(); String getPackageName(); String getFilesDirectoryPath(); @TargetApi(21) String getNoBackupFilesDirectoryPath(); String getDatabaseDirectoryPath(); String getDatabasePath(String databaseName); String getVersionCode(); String getVersionName();  }### Answer:
@Test public void setupProperties() { LoggerContext loggerContext = new LoggerContext(); assertThat(loggerContext.getProperty(CoreConstants.DATA_DIR_KEY), is(nullValue())); assertThat(loggerContext.getProperty(CoreConstants.EXT_DIR_KEY), is(nullValue())); assertThat(loggerContext.getProperty(CoreConstants.VERSION_CODE_KEY), is(nullValue())); assertThat(loggerContext.getProperty(CoreConstants.VERSION_NAME_KEY), is(nullValue())); assertThat(loggerContext.getProperty(CoreConstants.PACKAGE_NAME_KEY), is(nullValue())); contextUtil.setupProperties(loggerContext); assertThat(loggerContext.getProperty(CoreConstants.DATA_DIR_KEY), is(contextUtil.getFilesDirectoryPath())); assertThat(loggerContext.getProperty(CoreConstants.EXT_DIR_KEY), is(contextUtil.getMountedExternalStorageDirectoryPath())); assertThat(loggerContext.getProperty(CoreConstants.VERSION_CODE_KEY), is(contextUtil.getVersionCode())); assertThat(loggerContext.getProperty(CoreConstants.VERSION_NAME_KEY), is(contextUtil.getVersionName())); assertThat(loggerContext.getProperty(CoreConstants.PACKAGE_NAME_KEY), is(contextUtil.getPackageName())); }