### Question:
AgileHelper { public static String getFolderPath( String project ) { String folderPath = PentahoSystem.getSystemSetting( SETTINGS_FILE, FILES_PATH, null ); if ( folderPath != null ) { folderPath = PentahoSystem.getApplicationContext().getSolutionPath( folderPath + project ); } return folderPath; }  static String getSchemaName(); static String getDatasourceSolutionStorage(); static String getDialect( DatabaseMeta meta, String jndiName ); static String getDialect( DatabaseMeta meta ); static String generateTableName( String filename ); static String getJndiName(); static int getCsvSampleRowSize(); static DatabaseMeta getDatabaseMeta(); static Connection getConnection( String jndiName ); static String getFolderPath( String project ); static String getTmpFolderPath( String project ); static String getProjectMetadataFolder( String project ); static final String PLUGIN_NAME; }### Answer:
@Test public void testGetFolderPath() { PentahoSystem.setSystemSettingsService( null ); assertNull( AgileHelper.getFolderPath( null ) ); String sampleProject = AgileHelper.PLUGIN_NAME; String sampleFolderPath = "/etc/"; ISystemSettings systemSettings = mock( ISystemSettings.class ); when( systemSettings.getSystemSetting( anyString(), anyString(), anyString() ) ).thenReturn( null ).thenReturn( sampleFolderPath ); PentahoSystem.setSystemSettingsService( systemSettings ); assertNull( AgileHelper.getFolderPath( sampleProject ) ); assertTrue( ( sampleFolderPath + sampleProject ).equals( AgileHelper.getFolderPath( sampleProject ) ) ); }